html5/workers Overview.html,1.163,1.164

Update of /sources/public/html5/workers
In directory hutz:/tmp/cvs-serv14399

Modified Files:
	Overview.html 
Log Message:
Make it possible to create a shared worker based only on the URL, not the name. (whatwg r3723)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/workers/Overview.html,v
retrieving revision 1.163
retrieving revision 1.164
diff -u -d -r1.163 -r1.164
--- Overview.html	31 Aug 2009 02:26:55 -0000	1.163
+++ Overview.html	1 Sep 2009 23:44:36 -0000	1.164
@@ -173,7 +173,7 @@
    <h1>Web Workers</h1>
    <!--ZZZ:-->
    <!--<h2 class="no-num no-toc">W3C Working Draft 23 April 2009</h2>-->
-   <h2 class="no-num no-toc" id="editor-s-draft-31-august-2009">Editor's Draft 31 August 2009</h2>
+   <h2 class="no-num no-toc" id="editor-s-draft-1-september-2009">Editor's Draft 1 September 2009</h2>
    <!--:ZZZ-->
    <dl><!-- ZZZ: update the month/day (twice), (un)comment out
     <dt>This Version:</dt>
@@ -241,7 +241,7 @@
   specification's progress along the W3C Recommendation track.
   <!--ZZZ:-->
   <!--This specification is the 23 April 2009 Working Draft.-->
-  This specification is the 31 August 2009 Editor's Draft.
+  This specification is the 1 September 2009 Editor's Draft.
   <!--:ZZZ-->
   </p><!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- relationship to other work (required) --><p>This specification is also being produced by the <a href="http://www.whatwg.org/">WHATWG</a>. The two specifications are
   identical from the table of contents onwards.</p><!-- UNDER NO CIRCUMSTANCES IS THE FOLLOWING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- context and rationale (required) --><p>This specification is intended to specify a part of the Web
@@ -1661,8 +1661,8 @@
    resulting <span>absolute URL</span>.</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.</li>
+   argument, or the empty string if the second argument was
+   omitted.</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
@@ -1692,20 +1692,31 @@
 
      <li><p>Assign <var title="">outside port</var> to the <code title="dom-SharedWorker-port"><a href="#dom-sharedworker-port">port</a></code> attribute of <var title="">worker</var>.</li>
 
-     <li>
+     <li><p>Let <var title="">worker global scope</var> be
+     null.</li>
 
-      <p>If 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 <span>absolute URL</span> with the <span>same
-      origin</span> as <var title="">scriptURL</var>, then run these
-      substeps:</p>
+     <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 <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><a href="#sharedworkerglobalscope">SharedWorkerGlobalScope</a></code> object.</li>
 
-      <ol><li><p>Let <var title="">worker global scope</var> be that
-       <code><a href="#sharedworkerglobalscope">SharedWorkerGlobalScope</a></code> object.</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, and whose <code title="dom-WorkerGlobalScope-location"><a href="#dom-workerglobalscope-location">location</a></code> attribute
+     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>
 
-       <li><p>If <var title="">worker global scope</var>'s <code title="dom-WorkerGlobalScope-location"><a href="#dom-workerglobalscope-location">location</a></code>
+     <li>
+
+      <p>If <var title="">worker global scope</var> is not null, then
+      run these steps:</p>
+
+      <ol><li><p>If <var title="">worker global scope</var>'s <code title="dom-WorkerGlobalScope-location"><a href="#dom-workerglobalscope-location">location</a></code>
        attribute represents an <span>absolute URL</span> that is not
        exactly equal to <var title="">scriptURL</var>, then throw a
        <code>URL_MISMATCH_ERR</code> exception and abort all these

Received on Tuesday, 1 September 2009 23:44:49 UTC