[html5] r3144 - [gow] (2) Only directly created nested workers inherit the lifetime requirements [...]

whatwg at whatwg.org whatwg at whatwg.org
Thu May 28 02:25:04 PDT 2009


Author: ianh
Date: 2009-05-28 02:25:03 -0700 (Thu, 28 May 2009)
New Revision: 3144

Modified:
   source
Log:
[gow] (2) Only directly created nested workers inherit the lifetime requirements; ports on their own don't do it.

Modified: source
===================================================================
--- source	2009-05-28 07:01:38 UTC (rev 3143)
+++ source	2009-05-28 09:25:03 UTC (rev 3144)
@@ -67833,7 +67833,7 @@
   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 @@
   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
@@ -68430,6 +68432,20 @@
 
    <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
     URL</span>, with the <span>script browsing context</span> of the
     script that invoked the method as the <var title="">owner browsing
@@ -68560,6 +68576,20 @@
 
        </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>
@@ -68614,6 +68644,19 @@
 
    <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
     URL</span>, with the <span>script browsing context</span> of the
     script that invoked the method as the <var title="">owner browsing




More information about the Commit-Watchers mailing list