W3C home > Mailing lists > Public > public-html-commits@w3.org > August 2009

html5/workers Overview.html,1.158,1.159

From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 25 Aug 2009 23:23:53 +0000
To: public-html-commits@w3.org
Message-Id: <E1Mg5Mn-00036M-TN@lionel-hutz.w3.org>
Update of /sources/public/html5/workers
In directory hutz:/tmp/cvs-serv11908

Modified Files:
	Overview.html 
Log Message:
Make SharedWorker's second argument optional. (whatwg r3673)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/workers/Overview.html,v
retrieving revision 1.158
retrieving revision 1.159
diff -u -d -r1.158 -r1.159
--- Overview.html	24 Aug 2009 10:00:26 -0000	1.158
+++ Overview.html	25 Aug 2009 23:23:51 -0000	1.159
@@ -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-24-august-2009">Editor's Draft 24 August 2009</h2>
+   <h2 class="no-num no-toc" id="editor-s-draft-25-august-2009">Editor's Draft 25 August 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 24 August 2009 Editor's Draft.
+  This specification is the 25 August 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
@@ -1644,7 +1644,7 @@
 
   </ol><p>This constructor must be visible when the <span>script's global
   scope</span> is either a <code>Window</code> object or an object
-  implementing the <code><a href="#workerutils">WorkerUtils</a></code> interface.<h4 id="shared-workers-and-the-sharedworker-interface"><span class="secno">4.8.3 </span>Shared workers and the <code><a href="#sharedworker">SharedWorker</a></code> interface</h4><pre class="idl">[<a href="#dom-sharedworker" title="dom-SharedWorker">Constructor</a>(in DOMString scriptURL, in DOMString name)]
+  implementing the <code><a href="#workerutils">WorkerUtils</a></code> interface.<h4 id="shared-workers-and-the-sharedworker-interface"><span class="secno">4.8.3 </span>Shared workers and the <code><a href="#sharedworker">SharedWorker</a></code> interface</h4><pre class="idl">[<a href="#dom-sharedworker" title="dom-SharedWorker">Constructor</a>(in DOMString scriptURL, optional in DOMString name)]
 interface <dfn id="sharedworker">SharedWorker</dfn> : <a href="#abstractworker">AbstractWorker</a> {
   readonly attribute <span>MessagePort</span> <a href="#dom-sharedworker-port" title="dom-SharedWorker-port">port</a>;
 };</pre><p>The <dfn id="dom-sharedworker-port" title="dom-SharedWorker-port"><code>port</code></dfn>
@@ -1657,9 +1657,16 @@
    <li><p>If this fails, throw a <code>SYNTAX_ERR</code>
    exception.</li>
 
-   <li><p>If the <span>origin</span> of the resulting <span>absolute
-   URL</span> is not the <span title="same origin">same</span> as the
-   origin of the script that invoked the constructor, then throw a
+   <li><p>Otherwise, let <var title="">scriptURL</var> be the
+   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>
+
+   <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
+   the script that invoked the constructor, then throw a
    <span>security exception</span>.</li>
 
    <li>
@@ -1690,20 +1697,19 @@
       <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 the <var title="">name</var> argument, and
-      whose <code title="dom-WorkerGlobalScope-location"><a href="#dom-workerglobalscope-location">location</a></code> attribute
-      represents an <span>absolute URL</span> that has the <span>same
-      origin</span> as the resulting <span>absolute URL</span>, then
-      run these substeps:</p>
+      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>
 
       <ol><li><p>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>
        attribute represents an <span>absolute URL</span> that is not
-       exactly equal to the resulting <span>absolute URL</span>, then
-       throw a <code>URL_MISMATCH_ERR</code> exception and abort all
-       these steps.</li>
+       exactly equal to <var title="">scriptURL</var>, then throw a
+       <code>URL_MISMATCH_ERR</code> exception and abort all these
+       steps.</li>
 
        <li><p>Associate <var title="">worker</var> with <var title="">worker global scope</var>.</li>
 
@@ -1801,9 +1807,9 @@
 
    <li>
 
-    <p><a href="#run-a-worker">Run a worker</a> 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
+    <p><a href="#run-a-worker">Run a worker</a> for <var title="">scriptURL</var>,
+    with the <span>script browsing context</span> of the script that
+    invoked the method as the <var title="">owner browsing
     context</var>, and with <var title="">worker global scope</var> as
     the global scope.</p>
 
Received on Tuesday, 25 August 2009 23:24:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 25 August 2009 23:24:02 GMT