Skip to content

Commit

Permalink
[] (0) Make it possible to create a shared worker based only on the U…
Browse files Browse the repository at this point in the history
…RL, not the name.

git-svn-id: http://svn.whatwg.org/webapps@3723 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Sep 1, 2009
1 parent 34e2c40 commit bb1be4c
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 15 deletions.
2 changes: 1 addition & 1 deletion index
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
<div class=head>
<p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
<h1>HTML5</h1>
<h2 class="no-num no-toc" id=draft-standard-&mdash;-31-august-2009>Draft Standard &mdash; 31 August 2009</h2>
<h2 class="no-num no-toc" id=draft-standard-&mdash;-1-september-2009>Draft Standard &mdash; 1 September 2009</h2>
<p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
<p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
<!--<p class="impl"><strong>Implementors!</strong> We have a <a href="http://www.whatwg.org/mailing-list#implementors">mailing list</a> for you too!</p>-->
Expand Down
42 changes: 28 additions & 14 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -69786,8 +69786,8 @@ interface <dfn>SharedWorker</dfn> : <span>AbstractWorker</span> {
resulting <span>absolute URL</span>.</p></li>

<li><p>Let <var title="">name</var> be the value of the second
argument, or the value of <var title="">scriptURL</var>, if the
second argument was omitted.</p></li>
argument, or the empty string if the second argument was
omitted.</p></li>

<li><p>If the <span>origin</span> of <var title="">scriptURL</var>
is not the <span title="same origin">same</span> as the origin of
Expand Down Expand Up @@ -69824,23 +69824,37 @@ interface <dfn>SharedWorker</dfn> : <span>AbstractWorker</span> {
title="dom-SharedWorker-port">port</code> attribute of <var
title="">worker</var>.</p></li>

<li><p>Let <var title="">worker global scope</var> be
null.</p></li>

<li><p>If <var title="">name</var> is not the empty string and
there exists a <code>SharedWorkerGlobalScope</code> object whose
<span title="dom-WorkerGlobalScope-closing">closing</span> flag
is false, whose <code
title="dom-WorkerGlobalScope-name">name</code> attribute is
exactly equal to <var title="">name</var>, and whose <code
title="dom-WorkerGlobalScope-location">location</code> attribute
represents an <span>absolute URL</span> with the <span>same
origin</span> as <var title="">scriptURL</var>, then let <var
title="">worker global scope</var> be that
<code>SharedWorkerGlobalScope</code> object.</p></li>

<li><p>Otherwise, if <var title="">name</var> is the empty string
and there exists a <code>SharedWorkerGlobalScope</code> object
whose <span title="dom-WorkerGlobalScope-closing">closing</span>
flag is false, and whose <code
title="dom-WorkerGlobalScope-location">location</code> attribute
is exactly equal to <var title="">scriptURL</var>, then let <var
title="">worker global scope</var> be that
<code>SharedWorkerGlobalScope</code> object.</p></li>

<li>

<p>If there exists a <code>SharedWorkerGlobalScope</code> object
whose <span title="dom-WorkerGlobalScope-closing">closing</span>
flag is false, whose <code
title="dom-WorkerGlobalScope-name">name</code> attribute is
exactly equal to <var title="">name</var>, and whose <code
title="dom-WorkerGlobalScope-location">location</code> attribute
represents an <span>absolute URL</span> with the <span>same
origin</span> as <var title="">scriptURL</var>, then run these
substeps:</p>
<p>If <var title="">worker global scope</var> is not null, then
run these steps:</p>

<ol>

<li><p>Let <var title="">worker global scope</var> be that
<code>SharedWorkerGlobalScope</code> object.</p></li>

<li><p>If <var title="">worker global scope</var>'s <code
title="dom-WorkerGlobalScope-location">location</code>
attribute represents an <span>absolute URL</span> that is not
Expand Down

0 comments on commit bb1be4c

Please sign in to comment.