[html5] r6744 - [giow] (1) Allow shared workers to be isolated. Fixing http://www.w3.org/Bugs/Pu [...]

whatwg at whatwg.org whatwg at whatwg.org
Mon Oct 24 17:06:24 PDT 2011


Author: ianh
Date: 2011-10-24 17:06:22 -0700 (Mon, 24 Oct 2011)
New Revision: 6744

Modified:
   complete.html
   index
   source
Log:
[giow] (1) Allow shared workers to be isolated.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=13373

Modified: complete.html
===================================================================
--- complete.html	2011-10-24 23:57:18 UTC (rev 6743)
+++ complete.html	2011-10-25 00:06:22 UTC (rev 6744)
@@ -79383,27 +79383,45 @@
      <li><p>Let <var title="">worker global scope</var> be
      null.</li>
 
-     <li><p>If <var title="">name</var> is not the empty string and
-     there exists a <code><a href=#sharedworkerglobalscope>SharedWorkerGlobalScope</a></code> object whose
-     <a href=#dom-workerglobalscope-closing title=dom-WorkerGlobalScope-closing>closing</a> 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><a href=#dom-workerglobalscope-location>location</a></code> attribute
-     represents an <a href=#absolute-url>absolute URL</a> with the <a href=#same-origin>same
-     origin</a> as <var title="">scriptURL</var>, then let <var title="">worker global scope</var> be that
-     <code><a href=#sharedworkerglobalscope>SharedWorkerGlobalScope</a></code> object.</li>
+     <li>
 
-     <li><p>Otherwise, if <var title="">name</var> is the empty string
-     and there exists a <code><a href=#sharedworkerglobalscope>SharedWorkerGlobalScope</a></code> object
-     whose <a href=#dom-workerglobalscope-closing title=dom-WorkerGlobalScope-closing>closing</a>
-     flag is false, whose <code title=dom-WorkerGlobalScope-name>name</code> attribute is the
-     empty string, and whose <code title=dom-WorkerGlobalScope-location><a href=#dom-workerglobalscope-location>location</a></code> attribute
-     represents an <a href=#absolute-url>absolute URL</a> that is exactly equal to
-     <var title="">scriptURL</var>, then let <var title="">worker
-     global scope</var> be that <code><a href=#sharedworkerglobalscope>SharedWorkerGlobalScope</a></code>
-     object.</li>
+      <p>If <var title="">name</var> is not the empty string and there
+      exists a <code><a href=#sharedworkerglobalscope>SharedWorkerGlobalScope</a></code> object whose <a href=#dom-workerglobalscope-closing title=dom-WorkerGlobalScope-closing>closing</a> 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><a href=#dom-workerglobalscope-location>location</a></code> attribute
+      represents an <a href=#absolute-url>absolute URL</a> with the <a href=#same-origin>same
+      origin</a> as <var title="">scriptURL</var>, then let <var title="">worker global scope</var> be that
+      <code><a href=#sharedworkerglobalscope>SharedWorkerGlobalScope</a></code> object.</p>
 
+      <p>Otherwise, if <var title="">name</var> is the empty string
+      and there exists a <code><a href=#sharedworkerglobalscope>SharedWorkerGlobalScope</a></code> object
+      whose <a href=#dom-workerglobalscope-closing title=dom-WorkerGlobalScope-closing>closing</a>
+      flag is false, whose <code title=dom-WorkerGlobalScope-name>name</code> attribute is the
+      empty string, and whose <code title=dom-WorkerGlobalScope-location><a href=#dom-workerglobalscope-location>location</a></code> attribute
+      represents an <a href=#absolute-url>absolute URL</a> that is exactly equal to
+      <var title="">scriptURL</var>, then let <var title="">worker
+      global scope</var> be that <code><a href=#sharedworkerglobalscope>SharedWorkerGlobalScope</a></code>
+      object.</p>
+
+     </li>
+
      <li>
 
+      <p>If <var title="">worker global scope</var> is not null, but
+      the user agent has been configured to disallow communication
+      between the <a href=#concept-script title=concept-script>script</a> that
+      invoked the constructor and the worker represented by the <var title="">worker global scope</var>, then set <var title="">worker global scope</var> to null.</p>
+
+      <p class=note>For example, a user agent could have a
+      development mode that isolates a particular <a href=#top-level-browsing-context>top-level
+      browsing context</a> from all other pages, and scripts in
+      that development mode could be blocked from connecting to shared
+      workers running in the normal browser mode.</p>
+
+     </li>
+
+     <li>
+
       <p>If <var title="">worker global scope</var> is not null, then
       run these steps:</p>
 

Modified: index
===================================================================
--- index	2011-10-24 23:57:18 UTC (rev 6743)
+++ index	2011-10-25 00:06:22 UTC (rev 6744)
@@ -79383,27 +79383,45 @@
      <li><p>Let <var title="">worker global scope</var> be
      null.</li>
 
-     <li><p>If <var title="">name</var> is not the empty string and
-     there exists a <code><a href=#sharedworkerglobalscope>SharedWorkerGlobalScope</a></code> object whose
-     <a href=#dom-workerglobalscope-closing title=dom-WorkerGlobalScope-closing>closing</a> 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><a href=#dom-workerglobalscope-location>location</a></code> attribute
-     represents an <a href=#absolute-url>absolute URL</a> with the <a href=#same-origin>same
-     origin</a> as <var title="">scriptURL</var>, then let <var title="">worker global scope</var> be that
-     <code><a href=#sharedworkerglobalscope>SharedWorkerGlobalScope</a></code> object.</li>
+     <li>
 
-     <li><p>Otherwise, if <var title="">name</var> is the empty string
-     and there exists a <code><a href=#sharedworkerglobalscope>SharedWorkerGlobalScope</a></code> object
-     whose <a href=#dom-workerglobalscope-closing title=dom-WorkerGlobalScope-closing>closing</a>
-     flag is false, whose <code title=dom-WorkerGlobalScope-name>name</code> attribute is the
-     empty string, and whose <code title=dom-WorkerGlobalScope-location><a href=#dom-workerglobalscope-location>location</a></code> attribute
-     represents an <a href=#absolute-url>absolute URL</a> that is exactly equal to
-     <var title="">scriptURL</var>, then let <var title="">worker
-     global scope</var> be that <code><a href=#sharedworkerglobalscope>SharedWorkerGlobalScope</a></code>
-     object.</li>
+      <p>If <var title="">name</var> is not the empty string and there
+      exists a <code><a href=#sharedworkerglobalscope>SharedWorkerGlobalScope</a></code> object whose <a href=#dom-workerglobalscope-closing title=dom-WorkerGlobalScope-closing>closing</a> 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><a href=#dom-workerglobalscope-location>location</a></code> attribute
+      represents an <a href=#absolute-url>absolute URL</a> with the <a href=#same-origin>same
+      origin</a> as <var title="">scriptURL</var>, then let <var title="">worker global scope</var> be that
+      <code><a href=#sharedworkerglobalscope>SharedWorkerGlobalScope</a></code> object.</p>
 
+      <p>Otherwise, if <var title="">name</var> is the empty string
+      and there exists a <code><a href=#sharedworkerglobalscope>SharedWorkerGlobalScope</a></code> object
+      whose <a href=#dom-workerglobalscope-closing title=dom-WorkerGlobalScope-closing>closing</a>
+      flag is false, whose <code title=dom-WorkerGlobalScope-name>name</code> attribute is the
+      empty string, and whose <code title=dom-WorkerGlobalScope-location><a href=#dom-workerglobalscope-location>location</a></code> attribute
+      represents an <a href=#absolute-url>absolute URL</a> that is exactly equal to
+      <var title="">scriptURL</var>, then let <var title="">worker
+      global scope</var> be that <code><a href=#sharedworkerglobalscope>SharedWorkerGlobalScope</a></code>
+      object.</p>
+
+     </li>
+
      <li>
 
+      <p>If <var title="">worker global scope</var> is not null, but
+      the user agent has been configured to disallow communication
+      between the <a href=#concept-script title=concept-script>script</a> that
+      invoked the constructor and the worker represented by the <var title="">worker global scope</var>, then set <var title="">worker global scope</var> to null.</p>
+
+      <p class=note>For example, a user agent could have a
+      development mode that isolates a particular <a href=#top-level-browsing-context>top-level
+      browsing context</a> from all other pages, and scripts in
+      that development mode could be blocked from connecting to shared
+      workers running in the normal browser mode.</p>
+
+     </li>
+
+     <li>
+
       <p>If <var title="">worker global scope</var> is not null, then
       run these steps:</p>
 

Modified: source
===================================================================
--- source	2011-10-24 23:57:18 UTC (rev 6743)
+++ source	2011-10-25 00:06:22 UTC (rev 6744)
@@ -89795,32 +89795,53 @@
      <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>
 
-     <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, whose <code
-     title="dom-WorkerGlobalScope-name">name</code> attribute is the
-     empty string, and whose <code
-     title="dom-WorkerGlobalScope-location">location</code> attribute
-     represents an <span>absolute URL</span> that is exactly equal to
-     <var title="">scriptURL</var>, then let <var title="">worker
-     global scope</var> be that <code>SharedWorkerGlobalScope</code>
-     object.</p></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>
 
+      <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, whose <code
+      title="dom-WorkerGlobalScope-name">name</code> attribute is the
+      empty string, and whose <code
+      title="dom-WorkerGlobalScope-location">location</code> attribute
+      represents an <span>absolute URL</span> that 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 <var title="">worker global scope</var> is not null, but
+      the user agent has been configured to disallow communication
+      between the <span title="concept-script">script</span> that
+      invoked the constructor and the worker represented by the <var
+      title="">worker global scope</var>, then set <var
+      title="">worker global scope</var> to null.</p>
+
+      <p class="note">For example, a user agent could have a
+      development mode that isolates a particular <span>top-level
+      browsing context</span> from all other pages, and scripts in
+      that development mode could be blocked from connecting to shared
+      workers running in the normal browser mode.</p>
+
+     </li>
+
+     <li>
+
       <p>If <var title="">worker global scope</var> is not null, then
       run these steps:</p>
 




More information about the Commit-Watchers mailing list