[html5] r8853 - [giow] (3) Drop the 'responsible document' concept. This also changes the referr [...]

whatwg at whatwg.org whatwg at whatwg.org
Wed Nov 19 15:35:43 PST 2014


Author: ianh
Date: 2014-11-19 15:35:39 -0800 (Wed, 19 Nov 2014)
New Revision: 8853

Modified:
   complete.html
   index
   source
Log:
[giow] (3) Drop the 'responsible document' concept. This also changes the referrer to use when launching a nested worker to be the URL of the outer worker instead of the URL of the outer Document, which made no sense really.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=27145
Affected topics: DOM APIs, Workers

Modified: complete.html
===================================================================
--- complete.html	2014-11-19 22:48:09 UTC (rev 8852)
+++ complete.html	2014-11-19 23:35:39 UTC (rev 8853)
@@ -18417,7 +18417,7 @@
 
   <p id=img-determine-type>The user agent should apply the <a href=https://mimesniff.spec.whatwg.org/#rules-for-sniffing-images-specifically id=the-img-element:content-type-sniffing:-image data-x-internal=content-type-sniffing:-image>image sniffing rules</a> to determine the type of the image, with the image's <a href=#content-type id=the-img-element:content-type>associated Content-Type headers</a> giving the <var>official
   type</var>. If these rules are not applied, then the type of the image must be the type given by
-  the image's <a href=#content-type id=the-img-element:content-type-2>associated Content-Type headers</a>.<div class=status><input onclick=toggleStatus(this) value=⋰ type=button><p class=bugs><strong>Spec bugs:</strong> <a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=25889" title="<img> When to swap the image for the environment changes case">25889</a>, <a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=26702" title="What <img> represents should support srcset/picture">26702</a></div>
+  the image's <a href=#content-type id=the-img-element:content-type-2>associated Content-Type headers</a>.<div class=status><input onclick=toggleStatus(this) value=⋰ type=button><p class=bugs><strong>Spec bugs:</strong> <a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=27373" title="This should perhaps read "repeat this substep" otherwise 8.2 will reinitialize the descriptor to the empty string.">27373</a>, <a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=25889" title="<img> When to swap the image for the environment changes case">25889</a>, <a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=26702" title="What <img> represents should support srcset/picture">26702</a></div>
 
   <p>User agents must not support non-image resources with the <code id=the-img-element:the-img-element-47><a href=#the-img-element>img</a></code> element (e.g. XML
   files whose root element is an HTML element). User agents must not run executable code (e.g.
@@ -58175,7 +58175,7 @@
   <p>Each <a href=#concept-script id=garbage-collection-and-browsing-contexts:concept-script>script</a> has a strong reference to its <a href=#settings-object id=garbage-collection-and-browsing-contexts:settings-object>settings
   object</a>, and each <a href=#environment-settings-object id=garbage-collection-and-browsing-contexts:environment-settings-object>environment settings object</a> has strong references to its
   <a href=#global-object id=garbage-collection-and-browsing-contexts:global-object>global object</a>, <a href=#responsible-browsing-context id=garbage-collection-and-browsing-contexts:responsible-browsing-context>responsible browsing context</a>, and <a href=#responsible-document id=garbage-collection-and-browsing-contexts:responsible-document>responsible
-  document</a>.</p>
+  document</a> (if any).</p>
 
   
   <p>When a <a href=#browsing-context id=garbage-collection-and-browsing-contexts:browsing-context-2>browsing context</a> is to <dfn id=discard-a-document>discard a <code>Document</code></dfn>, the user
@@ -62669,6 +62669,11 @@
     of the new <a href=#browsing-context id=definitions-2:browsing-context-2>browsing context</a>'s <code id=definitions-2:window-4><a href=#window>Window</a></code> object will be set to the
     <a href=#responsible-browsing-context id=definitions-2:responsible-browsing-context>responsible browsing context</a>'s <code id=definitions-2:windowproxy-2><a href=#windowproxy>WindowProxy</a></code> object.</p>
 
+   <dt>A <dfn id=responsible-event-loop>responsible event loop</dfn><dd>
+
+    <p>An <a href=#event-loop id=definitions-2:event-loop>event loop</a> that is used when it would not be immediately clear what event
+    loop to use.</p>
+
    <dt>A <dfn id=responsible-document>responsible document</dfn><dd>
 
     <p>A <code id=definitions-2:document><a href=#document>Document</a></code> that is assigned responsibility for actions taken by the scripts that
@@ -62677,24 +62682,22 @@
     <p class=example>For example, the <a href=https://dom.spec.whatwg.org/#concept-document-url id="definitions-2:the-document's-address" data-x-internal="the-document's-address">address</a> of the
     <a href=#responsible-document id=definitions-2:responsible-document>responsible document</a> is used to set the <a href=https://dom.spec.whatwg.org/#concept-document-url id="definitions-2:the-document's-address-2" data-x-internal="the-document's-address">address</a> of the <code id=definitions-2:document-2><a href=#document>Document</a></code> after it has been reset using <code id=definitions-2:dom-document-open><a href=#dom-document-open>document.open()</a></code>.</p>
 
-   <dt>A <dfn id=responsible-event-loop>responsible event loop</dfn><dd>
+    <p>If the <a href=#responsible-event-loop id=definitions-2:responsible-event-loop>responsible event loop</a> is not a <a href=#browsing-context id=definitions-2:browsing-context-3>browsing context</a> <a href=#event-loop id=definitions-2:event-loop-2>event loop</a>,
+    then the <a href=#environment-settings-object id=definitions-2:environment-settings-object-5>environment settings object</a> has no <a href=#responsible-document id=definitions-2:responsible-document-2>responsible document</a>.</p>
 
-    <p>An <a href=#event-loop id=definitions-2:event-loop>event loop</a> that is used when it would not be immediately clear what event
-    loop to use.</p>
-
    <dt>A <dfn id=referrer-source>referrer source</dfn><dd>
 
-    <p>Either a <code id=definitions-2:document-3><a href=#document>Document</a></code> (specifically, the <a href=#responsible-document id=definitions-2:responsible-document-2>responsible document</a>), or a
+    <p>Either a <code id=definitions-2:document-3><a href=#document>Document</a></code> (specifically, the <a href=#responsible-document id=definitions-2:responsible-document-3>responsible document</a>), or a
     <a href=#url id=definitions-2:url>URL</a>, which is used by some APIs to determine what value to use for the <code id=definitions-2:http-referer><a href=#http-referer>Referer</a></code> (sic) header in calls to the <a href=#fetch id=definitions-2:fetch>fetching</a> algorithm.</p>
 
    <dt>An <dfn id=api-url-character-encoding>API URL character encoding</dfn><dd>
 
-    <p>A character encoding used to encode URLs by APIs called by scripts that use this <a href=#environment-settings-object id=definitions-2:environment-settings-object-5>environment
+    <p>A character encoding used to encode URLs by APIs called by scripts that use this <a href=#environment-settings-object id=definitions-2:environment-settings-object-6>environment
     settings object</a>.</p>
 
    <dt>An <dfn id=api-base-url>API base URL</dfn><dd>
 
-    <p>An <a href=#absolute-url id=definitions-2:absolute-url>absolute URL</a> used by APIs called by scripts that use this <a href=#environment-settings-object id=definitions-2:environment-settings-object-6>environment
+    <p>An <a href=#absolute-url id=definitions-2:absolute-url>absolute URL</a> used by APIs called by scripts that use this <a href=#environment-settings-object id=definitions-2:environment-settings-object-7>environment
     settings object</a> to resolve <a href=#relative-url id=definitions-2:relative-url>relative URLs</a>.</p>
 
    <dt>An <a href=#origin-2 id=definitions-2:origin-2>origin</a> and an <a href=#effective-script-origin id=definitions-2:effective-script-origin>effective script origin</a><dd>
@@ -62704,7 +62707,7 @@
    </dl>
 
   <p>The <dfn id=relevant-settings-object-for-a-global-object>relevant settings object for a global object</dfn> <var>o</var> is the
-  <a href=#environment-settings-object id=definitions-2:environment-settings-object-7>environment settings object</a> whose <a href=#global-object id=definitions-2:global-object-3>global object</a> is <var>o</var>.
+  <a href=#environment-settings-object id=definitions-2:environment-settings-object-8>environment settings object</a> whose <a href=#global-object id=definitions-2:global-object-3>global object</a> is <var>o</var>.
   (There is always a 1:1 mapping of global objects to environment settings objects.)</p>
 
   <p>The <dfn id=relevant-settings-object-for-a-script>relevant settings object for a script</dfn> <var>s</var> is the
@@ -62735,17 +62738,17 @@
     <p>Return the <a href=#browsing-context id=script-settings-for-browsing-contexts:browsing-context>browsing context</a> with which the <code id=script-settings-for-browsing-contexts:window-3><a href=#window>Window</a></code> object is
     associated.</p>
 
-   <dt>The <a href=#responsible-document id=script-settings-for-browsing-contexts:responsible-document>responsible document</a><dd>
-
-    <p>Return the <code id=script-settings-for-browsing-contexts:document><a href=#document>Document</a></code> with which the <code id=script-settings-for-browsing-contexts:window-4><a href=#window>Window</a></code> is currently
-    associated.</p>
-
    <dt>The <a href=#responsible-event-loop id=script-settings-for-browsing-contexts:responsible-event-loop>responsible event loop</a><dd>
 
     <p>Return the <a href=#event-loop id=script-settings-for-browsing-contexts:event-loop>event loop</a> that is associated with the <a href=#unit-of-related-similar-origin-browsing-contexts id=script-settings-for-browsing-contexts:unit-of-related-similar-origin-browsing-contexts>unit of related
-    similar-origin browsing contexts</a> to which the <code id=script-settings-for-browsing-contexts:window-5><a href=#window>Window</a></code> object's <a href=#browsing-context id=script-settings-for-browsing-contexts:browsing-context-2>browsing
+    similar-origin browsing contexts</a> to which the <code id=script-settings-for-browsing-contexts:window-4><a href=#window>Window</a></code> object's <a href=#browsing-context id=script-settings-for-browsing-contexts:browsing-context-2>browsing
     context</a> belongs.</p>
 
+   <dt>The <a href=#responsible-document id=script-settings-for-browsing-contexts:responsible-document>responsible document</a><dd>
+
+    <p>Return the <code id=script-settings-for-browsing-contexts:document><a href=#document>Document</a></code> with which the <code id=script-settings-for-browsing-contexts:window-5><a href=#window>Window</a></code> is currently
+    associated.</p>
+
    <dt>The <a href=#referrer-source id=script-settings-for-browsing-contexts:referrer-source>referrer source</a><dd>
 
     <p>Return the <code id=script-settings-for-browsing-contexts:document-2><a href=#document>Document</a></code> with which the <code id=script-settings-for-browsing-contexts:window-6><a href=#window>Window</a></code> is currently
@@ -68701,26 +68704,28 @@
      <a href=#origin-2 id=broadcasting-to-other-browsing-contexts:origin-2-4>origin</a> specified by <var>source settings</var>. This event is not <a href=#concept-events-trusted id=broadcasting-to-other-browsing-contexts:concept-events-trusted>trusted</a>.<li><p><a href=#concept-event-dispatch id=broadcasting-to-other-browsing-contexts:concept-event-dispatch>Dispatch</a> the event at the
      <code id=broadcasting-to-other-browsing-contexts:broadcastchannel-10><a href=#broadcastchannel>BroadcastChannel</a></code> object.</ol>
 
-    <p>The <a href=#concept-task id=broadcasting-to-other-browsing-contexts:concept-task>tasks</a> must be associated with the <a href=#responsible-document id=broadcasting-to-other-browsing-contexts:responsible-document-2>responsible
-    document</a> specified by the target <code id=broadcasting-to-other-browsing-contexts:broadcastchannel-11><a href=#broadcastchannel>BroadcastChannel</a></code> object's
-    <a href=#broadcastchannel-settings-object id=broadcasting-to-other-browsing-contexts:broadcastchannel-settings-object-6><code>BroadcastChannel</code> settings object</a>, and must use the <a href=#dom-manipulation-task-source id=broadcasting-to-other-browsing-contexts:dom-manipulation-task-source>DOM
-    manipulation task source</a>.</p>
+    <p>The <a href=#concept-task id=broadcasting-to-other-browsing-contexts:concept-task>tasks</a> must use the <a href=#dom-manipulation-task-source id=broadcasting-to-other-browsing-contexts:dom-manipulation-task-source>DOM
+    manipulation task source</a>, and, for those where the <a href=#event-loop id=broadcasting-to-other-browsing-contexts:event-loop>event loop</a> specified by the target <code id=broadcasting-to-other-browsing-contexts:broadcastchannel-11><a href=#broadcastchannel>BroadcastChannel</a></code> object's
+    <a href=#broadcastchannel-settings-object id=broadcasting-to-other-browsing-contexts:broadcastchannel-settings-object-6><code>BroadcastChannel</code> settings object</a> is a <a href=#browsing-context id=broadcasting-to-other-browsing-contexts:browsing-context-2>browsing context</a> <a href=#event-loop id=broadcasting-to-other-browsing-contexts:event-loop-2>event loop</a>, must
+    be associated with the <a href=#responsible-document id=broadcasting-to-other-browsing-contexts:responsible-document-2>responsible
+    document</a> specified by that target <code id=broadcasting-to-other-browsing-contexts:broadcastchannel-12><a href=#broadcastchannel>BroadcastChannel</a></code> object's
+    <a href=#broadcastchannel-settings-object id=broadcasting-to-other-browsing-contexts:broadcastchannel-settings-object-7><code>BroadcastChannel</code> settings object</a>.</p>
 
    </ol>
 
-  <p>While a <code id=broadcasting-to-other-browsing-contexts:broadcastchannel-12><a href=#broadcastchannel>BroadcastChannel</a></code> object whose <a href=#concept-broadcastchannel-closed id=broadcasting-to-other-browsing-contexts:concept-broadcastchannel-closed-4>closed flag</a> is false has an event listener
+  <p>While a <code id=broadcasting-to-other-browsing-contexts:broadcastchannel-13><a href=#broadcastchannel>BroadcastChannel</a></code> object whose <a href=#concept-broadcastchannel-closed id=broadcasting-to-other-browsing-contexts:concept-broadcastchannel-closed-4>closed flag</a> is false has an event listener
   registered for <code id=broadcasting-to-other-browsing-contexts:event-message-2><a href=#event-message>message</a></code> events, there must be a strong
-  reference from <a href=#global-object id=broadcasting-to-other-browsing-contexts:global-object-3>global object</a> specified by the <code id=broadcasting-to-other-browsing-contexts:broadcastchannel-13><a href=#broadcastchannel>BroadcastChannel</a></code> object's
-  <a href=#broadcastchannel-settings-object id=broadcasting-to-other-browsing-contexts:broadcastchannel-settings-object-7><code>BroadcastChannel</code> settings object</a> to the <code id=broadcasting-to-other-browsing-contexts:broadcastchannel-14><a href=#broadcastchannel>BroadcastChannel</a></code>
+  reference from <a href=#global-object id=broadcasting-to-other-browsing-contexts:global-object-3>global object</a> specified by the <code id=broadcasting-to-other-browsing-contexts:broadcastchannel-14><a href=#broadcastchannel>BroadcastChannel</a></code> object's
+  <a href=#broadcastchannel-settings-object id=broadcasting-to-other-browsing-contexts:broadcastchannel-settings-object-8><code>BroadcastChannel</code> settings object</a> to the <code id=broadcasting-to-other-browsing-contexts:broadcastchannel-15><a href=#broadcastchannel>BroadcastChannel</a></code>
   object itself.</p>
 
   <p>The <dfn id=dom-broadcastchannel-close><code>close()</code></dfn> method must set the
   <a href=#concept-broadcastchannel-closed id=broadcasting-to-other-browsing-contexts:concept-broadcastchannel-closed-5>closed flag</a> of the
-  <code id=broadcasting-to-other-browsing-contexts:broadcastchannel-15><a href=#broadcastchannel>BroadcastChannel</a></code> object on which it was invoked to true.</p>
+  <code id=broadcasting-to-other-browsing-contexts:broadcastchannel-16><a href=#broadcastchannel>BroadcastChannel</a></code> object on which it was invoked to true.</p>
 
-  <p class=note>Authors are strongly encouraged to explicitly close <code id=broadcasting-to-other-browsing-contexts:broadcastchannel-16><a href=#broadcastchannel>BroadcastChannel</a></code>
+  <p class=note>Authors are strongly encouraged to explicitly close <code id=broadcasting-to-other-browsing-contexts:broadcastchannel-17><a href=#broadcastchannel>BroadcastChannel</a></code>
   objects when they are no longer needed, so that they can be garbage collected. Creating many
-  <code id=broadcasting-to-other-browsing-contexts:broadcastchannel-17><a href=#broadcastchannel>BroadcastChannel</a></code> objects and discarding them while leaving them with an event
+  <code id=broadcasting-to-other-browsing-contexts:broadcastchannel-18><a href=#broadcastchannel>BroadcastChannel</a></code> objects and discarding them while leaving them with an event
   listener and without closing them can lead to an apparent memory leak, since the objects will
   continue to live for as long as they have an event listener (or until their page or worker is
   closed).</p>
@@ -68728,7 +68733,7 @@
   <hr>
 
   <p>The following are the <a href=#event-handlers id=broadcasting-to-other-browsing-contexts:event-handlers>event handlers</a> (and their corresponding <a href=#event-handler-event-type id=broadcasting-to-other-browsing-contexts:event-handler-event-type>event handler event types</a>) that must be supported, as <a href=#event-handler-idl-attributes id=broadcasting-to-other-browsing-contexts:event-handler-idl-attributes>event
-  handler IDL attributes</a>, by all objects implementing the <code id=broadcasting-to-other-browsing-contexts:broadcastchannel-18><a href=#broadcastchannel>BroadcastChannel</a></code>
+  handler IDL attributes</a>, by all objects implementing the <code id=broadcasting-to-other-browsing-contexts:broadcastchannel-19><a href=#broadcastchannel>BroadcastChannel</a></code>
   interface:</p>
 
   <table><thead><tr><th><a href=#event-handlers id=broadcasting-to-other-browsing-contexts:event-handlers-2>Event handler</a> <th><a href=#event-handler-event-type id=broadcasting-to-other-browsing-contexts:event-handler-event-type-2>Event handler event type</a>
@@ -69784,7 +69789,7 @@
   <h4 id=processing-model-11>10.2.4 Processing model</h4>
 
   <p>When a user agent is to <dfn id=run-a-worker>run a worker</dfn> for a script with <a href=#url id=processing-model-11:url>URL</a>
-  <var>url</var> and an <a href=#environment-settings-object id=processing-model-11:environment-settings-object>environment settings object</a> <var>settings object</var>, it must run
+  <var>url</var>, an <a href=#environment-settings-object id=processing-model-11:environment-settings-object>environment settings object</a> <var>settings object</var>, and a <a href=#referrer-source id=processing-model-11:referrer-source>referrer source</a> <var>parent referrer source</var> it must run
   the following steps:</p>
 
   <ol><li id=worker-processing-model-top><div class=status><input onclick=toggleStatus(this) value=⋰ type=button><p class=bugs><strong>Spec bugs:</strong> <a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=24519" title="Why do workers use document as their referrer source when they do not seem to need document for anything else? Seems more logical if the worker's location was used as the referrer.">24519</a></div>
@@ -69804,9 +69809,8 @@
    match.<li>
 
     <p>Attempt to <a href=#fetch id=processing-model-11:fetch>fetch</a> the resource identified by <var>url</var>, from the
-    <a href=#origin-2 id=processing-model-11:origin-2>origin</a> specified by <var>settings object</var>, using the <a href=#responsible-document id=processing-model-11:responsible-document>responsible
-    document</a> specified by <var>settings object</var> as the <var>referrer source</var> (not using
-    the specified <a href=#referrer-source id=processing-model-11:referrer-source>referrer source</a>!), and with the <i>blocking flag</i> set and
+    <a href=#origin-2 id=processing-model-11:origin-2>origin</a> specified by <var>settings object</var>, using <var>parent referrer source</var> as the <i>referrer source</i> (not using
+    the <a href=#referrer-source id=processing-model-11:referrer-source-2>referrer source</a> specified by <var>settings object</var>!), and with the <i>blocking flag</i> set and
     the <i>force same-origin flag</i> set.</p> 
 
     <p>If the attempt fails, then for each <code id=processing-model-11:worker><a href=#worker>Worker</a></code> or <code id=processing-model-11:sharedworker><a href=#sharedworker>SharedWorker</a></code> object
@@ -69987,9 +69991,8 @@
   address</var> it must run the following steps:</p>
 
   <ol><li><p>Let <var>inherited responsible browsing context</var> be the <a href=#responsible-browsing-context id=script-settings-for-workers:responsible-browsing-context>responsible
-   browsing context</a> specified by the <a href=#incumbent-settings-object id=script-settings-for-workers:incumbent-settings-object>incumbent settings object</a>.<li><p>Let <var>inherited responsible document</var> be the <a href=#responsible-document id=script-settings-for-workers:responsible-document>responsible
-   document</a> specified by the <a href=#incumbent-settings-object id=script-settings-for-workers:incumbent-settings-object-2>incumbent settings object</a>.<li><p>Let <var>inherited origin</var> be the <a href=#origin-2 id=script-settings-for-workers:origin-2>origin</a> specified by the
-   <a href=#incumbent-settings-object id=script-settings-for-workers:incumbent-settings-object-3>incumbent settings object</a>.<li><p>Let <var>worker event loop</var> be a newly created <a href=#event-loop id=script-settings-for-workers:event-loop>event
+   browsing context</a> specified by the <a href=#incumbent-settings-object id=script-settings-for-workers:incumbent-settings-object>incumbent settings object</a>.<li><p>Let <var>inherited origin</var> be the <a href=#origin-2 id=script-settings-for-workers:origin-2>origin</a> specified by the
+   <a href=#incumbent-settings-object id=script-settings-for-workers:incumbent-settings-object-2>incumbent settings object</a>.<li><p>Let <var>worker event loop</var> be a newly created <a href=#event-loop id=script-settings-for-workers:event-loop>event
    loop</a>.<li>
 
     <p>Let <var>settings object</var> be a new <a href=#environment-settings-object id=script-settings-for-workers:environment-settings-object>environment settings object</a> whose algorithms
@@ -70015,14 +70018,15 @@
 
       <p>Return <var>inherited responsible browsing context</var>.</p>
 
-     <dt>The <a href=#responsible-document id=script-settings-for-workers:responsible-document-2>responsible document</a><dd>
-
-      <p>Return <var>inherited responsible document</var>.</p>
-
      <dt>The <a href=#responsible-event-loop id=script-settings-for-workers:responsible-event-loop>responsible event loop</a><dd>
 
       <p>Return <var>worker event loop</var>.</p>
 
+     <dt>The <a href=#responsible-document id=script-settings-for-workers:responsible-document>responsible document</a><dd>
+
+      <p>Not applicable (the <a href=#responsible-event-loop id=script-settings-for-workers:responsible-event-loop-2>responsible event loop</a> is not a <a href=#browsing-context id=script-settings-for-workers:browsing-context>browsing context</a>
+      <a href=#event-loop id=script-settings-for-workers:event-loop-2>event loop</a>).</p>
+
      <dt>The <a href=#referrer-source id=script-settings-for-workers:referrer-source>referrer source</a><dd>
 
       <p>Return <var>script address</var>.</p>
@@ -70121,8 +70125,9 @@
    is a <code id=dedicated-workers-and-the-worker-interface:workerglobalscope><a href=#workerglobalscope>WorkerGlobalScope</a></code> object (i.e. we are creating a nested worker), add
    <var>worker global scope</var> to the list of <a href="#the-worker's-workers" id="dedicated-workers-and-the-worker-interface:the-worker's-workers">the worker's workers</a> of the
    <code id=dedicated-workers-and-the-worker-interface:workerglobalscope-2><a href=#workerglobalscope>WorkerGlobalScope</a></code> object that is the <a href=#global-object id=dedicated-workers-and-the-worker-interface:global-object-2>global object</a> specified by the
-   <a href=#incumbent-settings-object id=dedicated-workers-and-the-worker-interface:incumbent-settings-object-5>incumbent settings object</a>.<li><p><a href=#run-a-worker id=dedicated-workers-and-the-worker-interface:run-a-worker>Run a worker</a> for the script with <a href=#url id=dedicated-workers-and-the-worker-interface:url>URL</a> <var>worker URL</var> and
-   the <a href=#environment-settings-object id=dedicated-workers-and-the-worker-interface:environment-settings-object>environment settings object</a> <var>settings object</var>.</ol>
+   <a href=#incumbent-settings-object id=dedicated-workers-and-the-worker-interface:incumbent-settings-object-5>incumbent settings object</a>.<li><p><a href=#run-a-worker id=dedicated-workers-and-the-worker-interface:run-a-worker>Run a worker</a> for the script with <a href=#url id=dedicated-workers-and-the-worker-interface:url>URL</a> <var>worker URL</var>,
+   the <a href=#environment-settings-object id=dedicated-workers-and-the-worker-interface:environment-settings-object>environment settings object</a> <var>settings object</var>, and with the
+   <a href=#referrer-source id=dedicated-workers-and-the-worker-interface:referrer-source>referrer source</a> specified by the <a href=#incumbent-settings-object id=dedicated-workers-and-the-worker-interface:incumbent-settings-object-6>incumbent settings object</a>.</ol>
 
 
 
@@ -70256,8 +70261,9 @@
 
    <li>
 
-    <p><a href=#run-a-worker id=shared-workers-and-the-sharedworker-interface:run-a-worker>Run a worker</a> for the script with <a href=#url id=shared-workers-and-the-sharedworker-interface:url>URL</a> <var>scriptURL</var>
-    and the <a href=#environment-settings-object id=shared-workers-and-the-sharedworker-interface:environment-settings-object-3>environment settings object</a> <var>settings object</var>.</p>
+    <p><a href=#run-a-worker id=shared-workers-and-the-sharedworker-interface:run-a-worker>Run a worker</a> for the script with <a href=#url id=shared-workers-and-the-sharedworker-interface:url>URL</a> <var>scriptURL</var>,
+    the <a href=#environment-settings-object id=shared-workers-and-the-sharedworker-interface:environment-settings-object-3>environment settings object</a> <var>settings object</var>, and with the
+    <a href=#referrer-source id=shared-workers-and-the-sharedworker-interface:referrer-source>referrer source</a> specified by the <a href=#incumbent-settings-object id=shared-workers-and-the-sharedworker-interface:incumbent-settings-object-9>incumbent settings object</a>.</p>
 
    </ol>
 

Modified: index
===================================================================
--- index	2014-11-19 22:48:09 UTC (rev 8852)
+++ index	2014-11-19 23:35:39 UTC (rev 8853)
@@ -18417,7 +18417,7 @@
 
   <p id=img-determine-type>The user agent should apply the <a href=https://mimesniff.spec.whatwg.org/#rules-for-sniffing-images-specifically id=the-img-element:content-type-sniffing:-image data-x-internal=content-type-sniffing:-image>image sniffing rules</a> to determine the type of the image, with the image's <a href=#content-type id=the-img-element:content-type>associated Content-Type headers</a> giving the <var>official
   type</var>. If these rules are not applied, then the type of the image must be the type given by
-  the image's <a href=#content-type id=the-img-element:content-type-2>associated Content-Type headers</a>.<div class=status><input onclick=toggleStatus(this) value=⋰ type=button><p class=bugs><strong>Spec bugs:</strong> <a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=25889" title="<img> When to swap the image for the environment changes case">25889</a>, <a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=26702" title="What <img> represents should support srcset/picture">26702</a></div>
+  the image's <a href=#content-type id=the-img-element:content-type-2>associated Content-Type headers</a>.<div class=status><input onclick=toggleStatus(this) value=⋰ type=button><p class=bugs><strong>Spec bugs:</strong> <a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=27373" title="This should perhaps read "repeat this substep" otherwise 8.2 will reinitialize the descriptor to the empty string.">27373</a>, <a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=25889" title="<img> When to swap the image for the environment changes case">25889</a>, <a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=26702" title="What <img> represents should support srcset/picture">26702</a></div>
 
   <p>User agents must not support non-image resources with the <code id=the-img-element:the-img-element-47><a href=#the-img-element>img</a></code> element (e.g. XML
   files whose root element is an HTML element). User agents must not run executable code (e.g.
@@ -58175,7 +58175,7 @@
   <p>Each <a href=#concept-script id=garbage-collection-and-browsing-contexts:concept-script>script</a> has a strong reference to its <a href=#settings-object id=garbage-collection-and-browsing-contexts:settings-object>settings
   object</a>, and each <a href=#environment-settings-object id=garbage-collection-and-browsing-contexts:environment-settings-object>environment settings object</a> has strong references to its
   <a href=#global-object id=garbage-collection-and-browsing-contexts:global-object>global object</a>, <a href=#responsible-browsing-context id=garbage-collection-and-browsing-contexts:responsible-browsing-context>responsible browsing context</a>, and <a href=#responsible-document id=garbage-collection-and-browsing-contexts:responsible-document>responsible
-  document</a>.</p>
+  document</a> (if any).</p>
 
   
   <p>When a <a href=#browsing-context id=garbage-collection-and-browsing-contexts:browsing-context-2>browsing context</a> is to <dfn id=discard-a-document>discard a <code>Document</code></dfn>, the user
@@ -62669,6 +62669,11 @@
     of the new <a href=#browsing-context id=definitions-2:browsing-context-2>browsing context</a>'s <code id=definitions-2:window-4><a href=#window>Window</a></code> object will be set to the
     <a href=#responsible-browsing-context id=definitions-2:responsible-browsing-context>responsible browsing context</a>'s <code id=definitions-2:windowproxy-2><a href=#windowproxy>WindowProxy</a></code> object.</p>
 
+   <dt>A <dfn id=responsible-event-loop>responsible event loop</dfn><dd>
+
+    <p>An <a href=#event-loop id=definitions-2:event-loop>event loop</a> that is used when it would not be immediately clear what event
+    loop to use.</p>
+
    <dt>A <dfn id=responsible-document>responsible document</dfn><dd>
 
     <p>A <code id=definitions-2:document><a href=#document>Document</a></code> that is assigned responsibility for actions taken by the scripts that
@@ -62677,24 +62682,22 @@
     <p class=example>For example, the <a href=https://dom.spec.whatwg.org/#concept-document-url id="definitions-2:the-document's-address" data-x-internal="the-document's-address">address</a> of the
     <a href=#responsible-document id=definitions-2:responsible-document>responsible document</a> is used to set the <a href=https://dom.spec.whatwg.org/#concept-document-url id="definitions-2:the-document's-address-2" data-x-internal="the-document's-address">address</a> of the <code id=definitions-2:document-2><a href=#document>Document</a></code> after it has been reset using <code id=definitions-2:dom-document-open><a href=#dom-document-open>document.open()</a></code>.</p>
 
-   <dt>A <dfn id=responsible-event-loop>responsible event loop</dfn><dd>
+    <p>If the <a href=#responsible-event-loop id=definitions-2:responsible-event-loop>responsible event loop</a> is not a <a href=#browsing-context id=definitions-2:browsing-context-3>browsing context</a> <a href=#event-loop id=definitions-2:event-loop-2>event loop</a>,
+    then the <a href=#environment-settings-object id=definitions-2:environment-settings-object-5>environment settings object</a> has no <a href=#responsible-document id=definitions-2:responsible-document-2>responsible document</a>.</p>
 
-    <p>An <a href=#event-loop id=definitions-2:event-loop>event loop</a> that is used when it would not be immediately clear what event
-    loop to use.</p>
-
    <dt>A <dfn id=referrer-source>referrer source</dfn><dd>
 
-    <p>Either a <code id=definitions-2:document-3><a href=#document>Document</a></code> (specifically, the <a href=#responsible-document id=definitions-2:responsible-document-2>responsible document</a>), or a
+    <p>Either a <code id=definitions-2:document-3><a href=#document>Document</a></code> (specifically, the <a href=#responsible-document id=definitions-2:responsible-document-3>responsible document</a>), or a
     <a href=#url id=definitions-2:url>URL</a>, which is used by some APIs to determine what value to use for the <code id=definitions-2:http-referer><a href=#http-referer>Referer</a></code> (sic) header in calls to the <a href=#fetch id=definitions-2:fetch>fetching</a> algorithm.</p>
 
    <dt>An <dfn id=api-url-character-encoding>API URL character encoding</dfn><dd>
 
-    <p>A character encoding used to encode URLs by APIs called by scripts that use this <a href=#environment-settings-object id=definitions-2:environment-settings-object-5>environment
+    <p>A character encoding used to encode URLs by APIs called by scripts that use this <a href=#environment-settings-object id=definitions-2:environment-settings-object-6>environment
     settings object</a>.</p>
 
    <dt>An <dfn id=api-base-url>API base URL</dfn><dd>
 
-    <p>An <a href=#absolute-url id=definitions-2:absolute-url>absolute URL</a> used by APIs called by scripts that use this <a href=#environment-settings-object id=definitions-2:environment-settings-object-6>environment
+    <p>An <a href=#absolute-url id=definitions-2:absolute-url>absolute URL</a> used by APIs called by scripts that use this <a href=#environment-settings-object id=definitions-2:environment-settings-object-7>environment
     settings object</a> to resolve <a href=#relative-url id=definitions-2:relative-url>relative URLs</a>.</p>
 
    <dt>An <a href=#origin-2 id=definitions-2:origin-2>origin</a> and an <a href=#effective-script-origin id=definitions-2:effective-script-origin>effective script origin</a><dd>
@@ -62704,7 +62707,7 @@
    </dl>
 
   <p>The <dfn id=relevant-settings-object-for-a-global-object>relevant settings object for a global object</dfn> <var>o</var> is the
-  <a href=#environment-settings-object id=definitions-2:environment-settings-object-7>environment settings object</a> whose <a href=#global-object id=definitions-2:global-object-3>global object</a> is <var>o</var>.
+  <a href=#environment-settings-object id=definitions-2:environment-settings-object-8>environment settings object</a> whose <a href=#global-object id=definitions-2:global-object-3>global object</a> is <var>o</var>.
   (There is always a 1:1 mapping of global objects to environment settings objects.)</p>
 
   <p>The <dfn id=relevant-settings-object-for-a-script>relevant settings object for a script</dfn> <var>s</var> is the
@@ -62735,17 +62738,17 @@
     <p>Return the <a href=#browsing-context id=script-settings-for-browsing-contexts:browsing-context>browsing context</a> with which the <code id=script-settings-for-browsing-contexts:window-3><a href=#window>Window</a></code> object is
     associated.</p>
 
-   <dt>The <a href=#responsible-document id=script-settings-for-browsing-contexts:responsible-document>responsible document</a><dd>
-
-    <p>Return the <code id=script-settings-for-browsing-contexts:document><a href=#document>Document</a></code> with which the <code id=script-settings-for-browsing-contexts:window-4><a href=#window>Window</a></code> is currently
-    associated.</p>
-
    <dt>The <a href=#responsible-event-loop id=script-settings-for-browsing-contexts:responsible-event-loop>responsible event loop</a><dd>
 
     <p>Return the <a href=#event-loop id=script-settings-for-browsing-contexts:event-loop>event loop</a> that is associated with the <a href=#unit-of-related-similar-origin-browsing-contexts id=script-settings-for-browsing-contexts:unit-of-related-similar-origin-browsing-contexts>unit of related
-    similar-origin browsing contexts</a> to which the <code id=script-settings-for-browsing-contexts:window-5><a href=#window>Window</a></code> object's <a href=#browsing-context id=script-settings-for-browsing-contexts:browsing-context-2>browsing
+    similar-origin browsing contexts</a> to which the <code id=script-settings-for-browsing-contexts:window-4><a href=#window>Window</a></code> object's <a href=#browsing-context id=script-settings-for-browsing-contexts:browsing-context-2>browsing
     context</a> belongs.</p>
 
+   <dt>The <a href=#responsible-document id=script-settings-for-browsing-contexts:responsible-document>responsible document</a><dd>
+
+    <p>Return the <code id=script-settings-for-browsing-contexts:document><a href=#document>Document</a></code> with which the <code id=script-settings-for-browsing-contexts:window-5><a href=#window>Window</a></code> is currently
+    associated.</p>
+
    <dt>The <a href=#referrer-source id=script-settings-for-browsing-contexts:referrer-source>referrer source</a><dd>
 
     <p>Return the <code id=script-settings-for-browsing-contexts:document-2><a href=#document>Document</a></code> with which the <code id=script-settings-for-browsing-contexts:window-6><a href=#window>Window</a></code> is currently
@@ -68701,26 +68704,28 @@
      <a href=#origin-2 id=broadcasting-to-other-browsing-contexts:origin-2-4>origin</a> specified by <var>source settings</var>. This event is not <a href=#concept-events-trusted id=broadcasting-to-other-browsing-contexts:concept-events-trusted>trusted</a>.<li><p><a href=#concept-event-dispatch id=broadcasting-to-other-browsing-contexts:concept-event-dispatch>Dispatch</a> the event at the
      <code id=broadcasting-to-other-browsing-contexts:broadcastchannel-10><a href=#broadcastchannel>BroadcastChannel</a></code> object.</ol>
 
-    <p>The <a href=#concept-task id=broadcasting-to-other-browsing-contexts:concept-task>tasks</a> must be associated with the <a href=#responsible-document id=broadcasting-to-other-browsing-contexts:responsible-document-2>responsible
-    document</a> specified by the target <code id=broadcasting-to-other-browsing-contexts:broadcastchannel-11><a href=#broadcastchannel>BroadcastChannel</a></code> object's
-    <a href=#broadcastchannel-settings-object id=broadcasting-to-other-browsing-contexts:broadcastchannel-settings-object-6><code>BroadcastChannel</code> settings object</a>, and must use the <a href=#dom-manipulation-task-source id=broadcasting-to-other-browsing-contexts:dom-manipulation-task-source>DOM
-    manipulation task source</a>.</p>
+    <p>The <a href=#concept-task id=broadcasting-to-other-browsing-contexts:concept-task>tasks</a> must use the <a href=#dom-manipulation-task-source id=broadcasting-to-other-browsing-contexts:dom-manipulation-task-source>DOM
+    manipulation task source</a>, and, for those where the <a href=#event-loop id=broadcasting-to-other-browsing-contexts:event-loop>event loop</a> specified by the target <code id=broadcasting-to-other-browsing-contexts:broadcastchannel-11><a href=#broadcastchannel>BroadcastChannel</a></code> object's
+    <a href=#broadcastchannel-settings-object id=broadcasting-to-other-browsing-contexts:broadcastchannel-settings-object-6><code>BroadcastChannel</code> settings object</a> is a <a href=#browsing-context id=broadcasting-to-other-browsing-contexts:browsing-context-2>browsing context</a> <a href=#event-loop id=broadcasting-to-other-browsing-contexts:event-loop-2>event loop</a>, must
+    be associated with the <a href=#responsible-document id=broadcasting-to-other-browsing-contexts:responsible-document-2>responsible
+    document</a> specified by that target <code id=broadcasting-to-other-browsing-contexts:broadcastchannel-12><a href=#broadcastchannel>BroadcastChannel</a></code> object's
+    <a href=#broadcastchannel-settings-object id=broadcasting-to-other-browsing-contexts:broadcastchannel-settings-object-7><code>BroadcastChannel</code> settings object</a>.</p>
 
    </ol>
 
-  <p>While a <code id=broadcasting-to-other-browsing-contexts:broadcastchannel-12><a href=#broadcastchannel>BroadcastChannel</a></code> object whose <a href=#concept-broadcastchannel-closed id=broadcasting-to-other-browsing-contexts:concept-broadcastchannel-closed-4>closed flag</a> is false has an event listener
+  <p>While a <code id=broadcasting-to-other-browsing-contexts:broadcastchannel-13><a href=#broadcastchannel>BroadcastChannel</a></code> object whose <a href=#concept-broadcastchannel-closed id=broadcasting-to-other-browsing-contexts:concept-broadcastchannel-closed-4>closed flag</a> is false has an event listener
   registered for <code id=broadcasting-to-other-browsing-contexts:event-message-2><a href=#event-message>message</a></code> events, there must be a strong
-  reference from <a href=#global-object id=broadcasting-to-other-browsing-contexts:global-object-3>global object</a> specified by the <code id=broadcasting-to-other-browsing-contexts:broadcastchannel-13><a href=#broadcastchannel>BroadcastChannel</a></code> object's
-  <a href=#broadcastchannel-settings-object id=broadcasting-to-other-browsing-contexts:broadcastchannel-settings-object-7><code>BroadcastChannel</code> settings object</a> to the <code id=broadcasting-to-other-browsing-contexts:broadcastchannel-14><a href=#broadcastchannel>BroadcastChannel</a></code>
+  reference from <a href=#global-object id=broadcasting-to-other-browsing-contexts:global-object-3>global object</a> specified by the <code id=broadcasting-to-other-browsing-contexts:broadcastchannel-14><a href=#broadcastchannel>BroadcastChannel</a></code> object's
+  <a href=#broadcastchannel-settings-object id=broadcasting-to-other-browsing-contexts:broadcastchannel-settings-object-8><code>BroadcastChannel</code> settings object</a> to the <code id=broadcasting-to-other-browsing-contexts:broadcastchannel-15><a href=#broadcastchannel>BroadcastChannel</a></code>
   object itself.</p>
 
   <p>The <dfn id=dom-broadcastchannel-close><code>close()</code></dfn> method must set the
   <a href=#concept-broadcastchannel-closed id=broadcasting-to-other-browsing-contexts:concept-broadcastchannel-closed-5>closed flag</a> of the
-  <code id=broadcasting-to-other-browsing-contexts:broadcastchannel-15><a href=#broadcastchannel>BroadcastChannel</a></code> object on which it was invoked to true.</p>
+  <code id=broadcasting-to-other-browsing-contexts:broadcastchannel-16><a href=#broadcastchannel>BroadcastChannel</a></code> object on which it was invoked to true.</p>
 
-  <p class=note>Authors are strongly encouraged to explicitly close <code id=broadcasting-to-other-browsing-contexts:broadcastchannel-16><a href=#broadcastchannel>BroadcastChannel</a></code>
+  <p class=note>Authors are strongly encouraged to explicitly close <code id=broadcasting-to-other-browsing-contexts:broadcastchannel-17><a href=#broadcastchannel>BroadcastChannel</a></code>
   objects when they are no longer needed, so that they can be garbage collected. Creating many
-  <code id=broadcasting-to-other-browsing-contexts:broadcastchannel-17><a href=#broadcastchannel>BroadcastChannel</a></code> objects and discarding them while leaving them with an event
+  <code id=broadcasting-to-other-browsing-contexts:broadcastchannel-18><a href=#broadcastchannel>BroadcastChannel</a></code> objects and discarding them while leaving them with an event
   listener and without closing them can lead to an apparent memory leak, since the objects will
   continue to live for as long as they have an event listener (or until their page or worker is
   closed).</p>
@@ -68728,7 +68733,7 @@
   <hr>
 
   <p>The following are the <a href=#event-handlers id=broadcasting-to-other-browsing-contexts:event-handlers>event handlers</a> (and their corresponding <a href=#event-handler-event-type id=broadcasting-to-other-browsing-contexts:event-handler-event-type>event handler event types</a>) that must be supported, as <a href=#event-handler-idl-attributes id=broadcasting-to-other-browsing-contexts:event-handler-idl-attributes>event
-  handler IDL attributes</a>, by all objects implementing the <code id=broadcasting-to-other-browsing-contexts:broadcastchannel-18><a href=#broadcastchannel>BroadcastChannel</a></code>
+  handler IDL attributes</a>, by all objects implementing the <code id=broadcasting-to-other-browsing-contexts:broadcastchannel-19><a href=#broadcastchannel>BroadcastChannel</a></code>
   interface:</p>
 
   <table><thead><tr><th><a href=#event-handlers id=broadcasting-to-other-browsing-contexts:event-handlers-2>Event handler</a> <th><a href=#event-handler-event-type id=broadcasting-to-other-browsing-contexts:event-handler-event-type-2>Event handler event type</a>
@@ -69784,7 +69789,7 @@
   <h4 id=processing-model-11>10.2.4 Processing model</h4>
 
   <p>When a user agent is to <dfn id=run-a-worker>run a worker</dfn> for a script with <a href=#url id=processing-model-11:url>URL</a>
-  <var>url</var> and an <a href=#environment-settings-object id=processing-model-11:environment-settings-object>environment settings object</a> <var>settings object</var>, it must run
+  <var>url</var>, an <a href=#environment-settings-object id=processing-model-11:environment-settings-object>environment settings object</a> <var>settings object</var>, and a <a href=#referrer-source id=processing-model-11:referrer-source>referrer source</a> <var>parent referrer source</var> it must run
   the following steps:</p>
 
   <ol><li id=worker-processing-model-top><div class=status><input onclick=toggleStatus(this) value=⋰ type=button><p class=bugs><strong>Spec bugs:</strong> <a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=24519" title="Why do workers use document as their referrer source when they do not seem to need document for anything else? Seems more logical if the worker's location was used as the referrer.">24519</a></div>
@@ -69804,9 +69809,8 @@
    match.<li>
 
     <p>Attempt to <a href=#fetch id=processing-model-11:fetch>fetch</a> the resource identified by <var>url</var>, from the
-    <a href=#origin-2 id=processing-model-11:origin-2>origin</a> specified by <var>settings object</var>, using the <a href=#responsible-document id=processing-model-11:responsible-document>responsible
-    document</a> specified by <var>settings object</var> as the <var>referrer source</var> (not using
-    the specified <a href=#referrer-source id=processing-model-11:referrer-source>referrer source</a>!), and with the <i>blocking flag</i> set and
+    <a href=#origin-2 id=processing-model-11:origin-2>origin</a> specified by <var>settings object</var>, using <var>parent referrer source</var> as the <i>referrer source</i> (not using
+    the <a href=#referrer-source id=processing-model-11:referrer-source-2>referrer source</a> specified by <var>settings object</var>!), and with the <i>blocking flag</i> set and
     the <i>force same-origin flag</i> set.</p> 
 
     <p>If the attempt fails, then for each <code id=processing-model-11:worker><a href=#worker>Worker</a></code> or <code id=processing-model-11:sharedworker><a href=#sharedworker>SharedWorker</a></code> object
@@ -69987,9 +69991,8 @@
   address</var> it must run the following steps:</p>
 
   <ol><li><p>Let <var>inherited responsible browsing context</var> be the <a href=#responsible-browsing-context id=script-settings-for-workers:responsible-browsing-context>responsible
-   browsing context</a> specified by the <a href=#incumbent-settings-object id=script-settings-for-workers:incumbent-settings-object>incumbent settings object</a>.<li><p>Let <var>inherited responsible document</var> be the <a href=#responsible-document id=script-settings-for-workers:responsible-document>responsible
-   document</a> specified by the <a href=#incumbent-settings-object id=script-settings-for-workers:incumbent-settings-object-2>incumbent settings object</a>.<li><p>Let <var>inherited origin</var> be the <a href=#origin-2 id=script-settings-for-workers:origin-2>origin</a> specified by the
-   <a href=#incumbent-settings-object id=script-settings-for-workers:incumbent-settings-object-3>incumbent settings object</a>.<li><p>Let <var>worker event loop</var> be a newly created <a href=#event-loop id=script-settings-for-workers:event-loop>event
+   browsing context</a> specified by the <a href=#incumbent-settings-object id=script-settings-for-workers:incumbent-settings-object>incumbent settings object</a>.<li><p>Let <var>inherited origin</var> be the <a href=#origin-2 id=script-settings-for-workers:origin-2>origin</a> specified by the
+   <a href=#incumbent-settings-object id=script-settings-for-workers:incumbent-settings-object-2>incumbent settings object</a>.<li><p>Let <var>worker event loop</var> be a newly created <a href=#event-loop id=script-settings-for-workers:event-loop>event
    loop</a>.<li>
 
     <p>Let <var>settings object</var> be a new <a href=#environment-settings-object id=script-settings-for-workers:environment-settings-object>environment settings object</a> whose algorithms
@@ -70015,14 +70018,15 @@
 
       <p>Return <var>inherited responsible browsing context</var>.</p>
 
-     <dt>The <a href=#responsible-document id=script-settings-for-workers:responsible-document-2>responsible document</a><dd>
-
-      <p>Return <var>inherited responsible document</var>.</p>
-
      <dt>The <a href=#responsible-event-loop id=script-settings-for-workers:responsible-event-loop>responsible event loop</a><dd>
 
       <p>Return <var>worker event loop</var>.</p>
 
+     <dt>The <a href=#responsible-document id=script-settings-for-workers:responsible-document>responsible document</a><dd>
+
+      <p>Not applicable (the <a href=#responsible-event-loop id=script-settings-for-workers:responsible-event-loop-2>responsible event loop</a> is not a <a href=#browsing-context id=script-settings-for-workers:browsing-context>browsing context</a>
+      <a href=#event-loop id=script-settings-for-workers:event-loop-2>event loop</a>).</p>
+
      <dt>The <a href=#referrer-source id=script-settings-for-workers:referrer-source>referrer source</a><dd>
 
       <p>Return <var>script address</var>.</p>
@@ -70121,8 +70125,9 @@
    is a <code id=dedicated-workers-and-the-worker-interface:workerglobalscope><a href=#workerglobalscope>WorkerGlobalScope</a></code> object (i.e. we are creating a nested worker), add
    <var>worker global scope</var> to the list of <a href="#the-worker's-workers" id="dedicated-workers-and-the-worker-interface:the-worker's-workers">the worker's workers</a> of the
    <code id=dedicated-workers-and-the-worker-interface:workerglobalscope-2><a href=#workerglobalscope>WorkerGlobalScope</a></code> object that is the <a href=#global-object id=dedicated-workers-and-the-worker-interface:global-object-2>global object</a> specified by the
-   <a href=#incumbent-settings-object id=dedicated-workers-and-the-worker-interface:incumbent-settings-object-5>incumbent settings object</a>.<li><p><a href=#run-a-worker id=dedicated-workers-and-the-worker-interface:run-a-worker>Run a worker</a> for the script with <a href=#url id=dedicated-workers-and-the-worker-interface:url>URL</a> <var>worker URL</var> and
-   the <a href=#environment-settings-object id=dedicated-workers-and-the-worker-interface:environment-settings-object>environment settings object</a> <var>settings object</var>.</ol>
+   <a href=#incumbent-settings-object id=dedicated-workers-and-the-worker-interface:incumbent-settings-object-5>incumbent settings object</a>.<li><p><a href=#run-a-worker id=dedicated-workers-and-the-worker-interface:run-a-worker>Run a worker</a> for the script with <a href=#url id=dedicated-workers-and-the-worker-interface:url>URL</a> <var>worker URL</var>,
+   the <a href=#environment-settings-object id=dedicated-workers-and-the-worker-interface:environment-settings-object>environment settings object</a> <var>settings object</var>, and with the
+   <a href=#referrer-source id=dedicated-workers-and-the-worker-interface:referrer-source>referrer source</a> specified by the <a href=#incumbent-settings-object id=dedicated-workers-and-the-worker-interface:incumbent-settings-object-6>incumbent settings object</a>.</ol>
 
 
 
@@ -70256,8 +70261,9 @@
 
    <li>
 
-    <p><a href=#run-a-worker id=shared-workers-and-the-sharedworker-interface:run-a-worker>Run a worker</a> for the script with <a href=#url id=shared-workers-and-the-sharedworker-interface:url>URL</a> <var>scriptURL</var>
-    and the <a href=#environment-settings-object id=shared-workers-and-the-sharedworker-interface:environment-settings-object-3>environment settings object</a> <var>settings object</var>.</p>
+    <p><a href=#run-a-worker id=shared-workers-and-the-sharedworker-interface:run-a-worker>Run a worker</a> for the script with <a href=#url id=shared-workers-and-the-sharedworker-interface:url>URL</a> <var>scriptURL</var>,
+    the <a href=#environment-settings-object id=shared-workers-and-the-sharedworker-interface:environment-settings-object-3>environment settings object</a> <var>settings object</var>, and with the
+    <a href=#referrer-source id=shared-workers-and-the-sharedworker-interface:referrer-source>referrer source</a> specified by the <a href=#incumbent-settings-object id=shared-workers-and-the-sharedworker-interface:incumbent-settings-object-9>incumbent settings object</a>.</p>
 
    </ol>
 

Modified: source
===================================================================
--- source	2014-11-19 22:48:09 UTC (rev 8852)
+++ source	2014-11-19 23:35:39 UTC (rev 8853)
@@ -78281,7 +78281,7 @@
   <p>Each <span data-x="concept-script">script</span> has a strong reference to its <span>settings
   object</span>, and each <span>environment settings object</span> has strong references to its
   <span>global object</span>, <span>responsible browsing context</span>, and <span>responsible
-  document</span>.</p>
+  document</span> (if any).</p>
 
   <!-- discard a document -->
   <p>When a <span>browsing context</span> is to <dfn>discard a <code>Document</code></dfn>, the user
@@ -84631,6 +84631,15 @@
 
    </dd>
 
+   <dt>A <dfn>responsible event loop</dfn></dt>
+
+   <dd>
+
+    <p>An <span>event loop</span> that is used when it would not be immediately clear what event
+    loop to use.</p>
+
+   </dd>
+
    <dt>A <dfn>responsible document</dfn></dt>
 
    <dd>
@@ -84643,15 +84652,9 @@
     address">address</span> of the <code>Document</code> after it has been reset using <code
     data-x="dom-document-open">document.open()</code>.</p>
 
-   </dd>
+    <p>If the <span>responsible event loop</span> is not a <span>browsing context</span> <span>event loop</span>,
+    then the <span>environment settings object</span> has no <span>responsible document</span>.</p>
 
-   <dt>A <dfn>responsible event loop</dfn></dt>
-
-   <dd>
-
-    <p>An <span>event loop</span> that is used when it would not be immediately clear what event
-    loop to use.</p>
-
    </dd>
 
    <dt>A <dfn>referrer source</dfn></dt>
@@ -84736,20 +84739,20 @@
 
    </dd>
 
-   <dt>The <span>responsible document</span></dt>
+   <dt>The <span>responsible event loop</span></dt>
    <dd>
 
-    <p>Return the <code>Document</code> with which the <code>Window</code> is currently
-    associated.</p>
+    <p>Return the <span>event loop</span> that is associated with the <span>unit of related
+    similar-origin browsing contexts</span> to which the <code>Window</code> object's <span>browsing
+    context</span> belongs.</p>
 
    </dd>
 
-   <dt>The <span>responsible event loop</span></dt>
+   <dt>The <span>responsible document</span></dt>
    <dd>
 
-    <p>Return the <span>event loop</span> that is associated with the <span>unit of related
-    similar-origin browsing contexts</span> to which the <code>Window</code> object's <span>browsing
-    context</span> belongs.</p>
+    <p>Return the <code>Document</code> with which the <code>Window</code> is currently
+    associated.</p>
 
    </dd>
 
@@ -93248,10 +93251,12 @@
 
     </ol>
 
-    <p>The <span data-x="concept-task">tasks</span> must be associated with the <span>responsible
-    document</span> specified by the target <code>BroadcastChannel</code> object's
-    <span><code>BroadcastChannel</code> settings object</span>, and must use the <span>DOM
-    manipulation task source</span>.</p>
+    <p>The <span data-x="concept-task">tasks</span> must use the <span>DOM
+    manipulation task source</span>, and, for those where the <span>event loop</span> specified by the target <code>BroadcastChannel</code> object's
+    <span><code>BroadcastChannel</code> settings object</span> is a <span>browsing context</span> <span>event loop</span>, must
+    be associated with the <span>responsible
+    document</span> specified by that target <code>BroadcastChannel</code> object's
+    <span><code>BroadcastChannel</code> settings object</span>.</p>
 
    </li>
 
@@ -93983,7 +93988,7 @@
   <h4>Processing model</h4>
 
   <p>When a user agent is to <dfn>run a worker</dfn> for a script with <span>URL</span>
-  <var>url</var> and an <span>environment settings object</span> <var>settings object</var>, it must run
+  <var>url</var>, an <span>environment settings object</span> <var>settings object</var>, and a <span>referrer source</span> <var>parent referrer source</var> it must run
   the following steps:</p>
 
   <ol>
@@ -94013,9 +94018,8 @@
    <li>
 
     <p>Attempt to <span>fetch</span><!--FETCH--> the resource identified by <var>url</var>, from the
-    <span>origin</span> specified by <var>settings object</var>, using the <span>responsible
-    document</span> specified by <var>settings object</var> as the <var>referrer source</var> (not using
-    the specified <span>referrer source</span>!), and with the <i>blocking flag</i> set and
+    <span>origin</span> specified by <var>settings object</var>, using <var>parent referrer source</var> as the <i>referrer source</i> (not using
+    the <span>referrer source</span> specified by <var>settings object</var>!), and with the <i>blocking flag</i> set and
     the <i>force same-origin flag</i> set.</p> <!-- not http-origin privacy sensitive (looking
     forward to CORS) -->
 
@@ -94259,9 +94263,6 @@
    <li><p>Let <var>inherited responsible browsing context</var> be the <span>responsible
    browsing context</span> specified by the <span>incumbent settings object</span>.</p></li>
 
-   <li><p>Let <var>inherited responsible document</var> be the <span>responsible
-   document</span> specified by the <span>incumbent settings object</span>.</p></li>
-
    <li><p>Let <var>inherited origin</var> be the <span>origin</span> specified by the
    <span>incumbent settings object</span>.</p></li>
 
@@ -94304,17 +94305,18 @@
 
      </dd>
 
-     <dt>The <span>responsible document</span></dt>
+     <dt>The <span>responsible event loop</span></dt>
      <dd>
 
-      <p>Return <var>inherited responsible document</var>.</p>
+      <p>Return <var>worker event loop</var>.</p>
 
      </dd>
 
-     <dt>The <span>responsible event loop</span></dt>
+     <dt>The <span>responsible document</span></dt>
      <dd>
 
-      <p>Return <var>worker event loop</var>.</p>
+      <p>Not applicable (the <span>responsible event loop</span> is not a <span>browsing context</span>
+      <span>event loop</span>).</p>
 
      </dd>
 
@@ -94489,8 +94491,9 @@
    <code>WorkerGlobalScope</code> object that is the <span>global object</span> specified by the
    <span>incumbent settings object</span>.</p></li>
 
-   <li><p><span>Run a worker</span> for the script with <span>URL</span> <var>worker URL</var> and
-   the <span>environment settings object</span> <var>settings object</var>.</p></li>
+   <li><p><span>Run a worker</span> for the script with <span>URL</span> <var>worker URL</var>,
+   the <span>environment settings object</span> <var>settings object</var>, and with the
+   <span>referrer source</span> specified by the <span>incumbent settings object</span>.</p></li>
 
   </ol>
 
@@ -94719,8 +94722,9 @@
 
    <li>
 
-    <p><span>Run a worker</span> for the script with <span>URL</span> <var>scriptURL</var>
-    and the <span>environment settings object</span> <var>settings object</var>.</p>
+    <p><span>Run a worker</span> for the script with <span>URL</span> <var>scriptURL</var>,
+    the <span>environment settings object</span> <var>settings object</var>, and with the
+    <span>referrer source</span> specified by the <span>incumbent settings object</span>.</p>
 
    </li>
 



More information about the Commit-Watchers mailing list