Clarify behaviour in the face of redirects. (whatwg r3224)

Clarify behaviour in the face of redirects. (whatwg r3224)

http://dev.w3.org/cvsweb/html5/workers/Overview.html?r1=1.128&r2=1.129&f=h
http://html5.org/tools/web-apps-tracker?from=3223&to=3224

===================================================================
RCS file: /sources/public/html5/workers/Overview.html,v
retrieving revision 1.128
retrieving revision 1.129
diff -u -d -r1.128 -r1.129
--- Overview.html 11 Jun 2009 21:40:10 -0000 1.128
+++ Overview.html 12 Jun 2009 01:08:18 -0000 1.129
@@ -151,7 +151,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-date-1-january-1970">Editor's Draft 11 June 2009</h2>
+   <h2 class="no-num no-toc" id="editor-s-draft-date-1-january-1970">Editor's Draft 12 June 2009</h2>
    <!--:ZZZ-->
    <dl><!-- ZZZ: update the month/day (twice), (un)comment out
     <dt>This Version:</dt>
@@ -219,7 +219,7 @@
   specification's progress along the W3C Recommendation track.
   <!--ZZZ:-->
   <!--This specification is the 23 April 2009 Working Draft.-->
-  This specification is the 11 June 2009 Editor's Draft.
+  This specification is the 12 June 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
@@ -1008,7 +1008,7 @@
   attribute must return the <code><a href="#workerlocation">WorkerLocation</a></code> object created
   for the <code><a href="#workerglobalscope">WorkerGlobalScope</a></code> object when the worker was
   created. It represents the <span>absolute URL</span> of the script
-  that was used to initialize the worker.<hr><p>When a script invokes the <dfn id="dom-workerglobalscope-close" title="dom-WorkerGlobalScope-close"><code>close()</code></dfn>
+  that was used to initialize the worker, after any redirects.<hr><p>When a script invokes the <dfn id="dom-workerglobalscope-close" title="dom-WorkerGlobalScope-close"><code>close()</code></dfn>
   method on a <code><a href="#workerglobalscope">WorkerGlobalScope</a></code> object, the user agent
   must run the following steps (atomically):<ol><li><p>Discard any <span title="concept-task">tasks</span> that
    have been added to the <span>event loop</span>'s <span title="task
@@ -1234,10 +1234,14 @@
 
     <p>Attempt to <span>fetch</span> the resource identified by <var title="">url</var>.</p>
 
-    <p>If the attempt fails, then for each <code><a href="#worker">Worker</a></code> or
-    <code><a href="#sharedworker">SharedWorker</a></code> object associated with <var title="">worker global scope</var>, <span>queue a task</span> to
-    <span>fire a simple event</span> called <code title="event-error">error</code> at that object. Abort these
-    steps.</p>
+    <p>If the attempt fails, or if the attempt involves any redirects
+    to URIs that do not have the <span>same origin</span> as <var title="">url</var> (even if the final URI is at the <span>same
+    origin</span> as the original <var title="">url</var>), then for
+    each <code><a href="#worker">Worker</a></code> or <code><a href="#sharedworker">SharedWorker</a></code> object
+    associated with <var title="">worker global scope</var>,
+    <span>queue a task</span> to <span>fire a simple event</span>
+    called <code title="event-error">error</code> at that
+    object. Abort these steps.</p>
 
     <p>If the attempt succeeds, then <a href="#decode-a-script-resource" title="decode a script
     resource">decode the script resource</a> to obtain its <var title="">source</var>.</p>

Received on Friday, 12 June 2009 01:09:10 UTC