Skip to content
Permalink
Browse files
[gow] (2) Only directly created nested workers inherit the lifetime r…
…equirements; ports on their own don't do it.

git-svn-id: http://svn.whatwg.org/webapps@3144 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed May 28, 2009
1 parent 38c2320 commit 83d0ada88c3505b5a67a82d6ea5ed574cd9f5ddc
Showing with 51 additions and 8 deletions.
  1. +51 −8 source
59 source
@@ -67833,7 +67833,7 @@ XXX Once we resolve the style="" issue, address these:
operations are dropped, etc.</p>


<h4>The worker's ports</h4>
<h4>The worker's lifetime</h4>

<p>Workers communicate with other workers and with <span
title="browsing context">browsing contexts</span> through <span
@@ -67854,17 +67854,19 @@ XXX Once we resolve the style="" issue, address these:
title="DedicatedWorkerGlobalScope">dedicated workers</span>.</p>

<p>Each <code>WorkerGlobalScope</code> also has a list of <dfn>the
worker's <code>Document</code>s</dfn>. Initially this list is empty;
it is populated when the worker is created.</p>
worker's workers</dfn>. Initially this list is empty; it is
populated when the worker creates or obtains further workers.</p>

<p>Finally, each <code>WorkerGlobalScope</code> also has a list of
<dfn>the worker's <code>Document</code>s</dfn>. Initially this list
is empty; it is populated when the worker is created.</p>

<p>Whenever a <code>Document</code> <var title="">d</var> is <dfn
title="add a document to the worker's documents">added to the
worker's <code>Document</code>s</dfn>, the user agent must, for each
port in the list of <span>the worker's ports</span> that is
entangled with a second port <var title="">p</var> whose owner is a
<code>WorkerGlobalScope</code> object whose list of <span>the
worker's <code>Document</code>s</span> does not contain <var
title="">d</var>, <span title="add a document to the worker's
worker in the list of <span>the worker's workers</span> whose list
of <span>the worker's <code>Document</code>s</span> does not contain
<var title="">d</var>, <span title="add a document to the worker's
documents">add <var title="">d</var> to <var title="">q</var>'s
<code>WorkerGlobalScope</code> owner's list of <span>the worker's
<code>Document</code>s</span></span>.</p> <!-- suggestions welcome
@@ -68428,6 +68430,20 @@ interface <dfn>Worker</dfn> : <span>AbstractWorker</span> {

</li>

<li>

<p>If the <span title="script's global scope">global scope</span>
of the <span title="concept-script">script</span> that invoked the
constructor is a <code>WorkerGlobalScope</code> object (i.e. we
are creating a nested worker), add <var title="">worker global
scope</var> to the list of <span>the worker's workers</span> of the
<code>WorkerGlobalScope</code> object that is the <span
title="script's global scope">global scope</span> of the <span
title="concept-script">script</span> that invoked the
constructor.</p>

</li>

<li>

<p><span>Run a worker</span> for the resulting <span>absolute
@@ -68560,6 +68576,20 @@ interface <dfn>SharedWorker</dfn> : <span>AbstractWorker</span> {

</li>

<li>

<p>If the <span title="script's global scope">global
scope</span> of the <span title="concept-script">script</span>
that invoked the constructor is a
<code>WorkerGlobalScope</code> object, add <var
title="">worker global scope</var> to the list of <span>the
worker's workers</span> of the <code>WorkerGlobalScope</code>
object that is the <span title="script's global scope">global
scope</span> of the <span title="concept-script">script</span>
that invoked the constructor.</p>

</li>

<li><p>Abort all these steps.</p></li>

</ol>
@@ -68612,6 +68642,19 @@ interface <dfn>SharedWorker</dfn> : <span>AbstractWorker</span> {

</li>

<li>

<p>If the <span title="script's global scope">global scope</span>
of the <span title="concept-script">script</span> that invoked the
constructor is a <code>WorkerGlobalScope</code> object, add <var
title="">worker global scope</var> to the list of <span>the
worker's workers</span> of the <code>WorkerGlobalScope</code>
object that is the <span title="script's global scope">global
scope</span> of the <span title="concept-script">script</span>
that invoked the constructor.</p>

</li>

<li>

<p><span>Run a worker</span> for the resulting <span>absolute

0 comments on commit 83d0ada

Please sign in to comment.