Clarify 'Referer' handling in general. Fix it for window.open() spcifically. (whatwg r3223)

Clarify 'Referer' handling in general. Fix it for window.open()
spcifically. (whatwg r3223)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.2372&r2=1.2373&f=h
http://html5.org/tools/web-apps-tracker?from=3222&to=3223

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.2372
retrieving revision 1.2373
diff -u -d -r1.2372 -r1.2373
--- Overview.html 11 Jun 2009 21:40:01 -0000 1.2372
+++ Overview.html 12 Jun 2009 00:23:37 -0000 1.2373
@@ -4627,7 +4627,28 @@
     redirects, <a href="#concept-js-deref" title="concept-js-deref">dereferencing <span title="javascript protocol"><code title="">javascript:</code>
     URLs</span></a>, etc).</p>
 
-   </li>
+    <p>For purposes of generating the <i>address of the resource from
+    which Request-URIs are obtained</i> as required by HTTP for the
+    <code title="http-referer">Referer</code> (sic) header, the user
+    agent must use <a href="#the-document-s-current-address">the document's current address</a> of the
+    appropriate <code>Document</code> as given by this list.  <a href="#references">[HTTP]</a></p>
+
+    <dl class="switch"><dt>When <a href="#navigate" title="navigate">navigating</a></dt>
+
+     <dd>The <a href="#active-document">active document</a> of the <a href="#source-browsing-context">source browsing
+     context</a>.</dd>
+
+     <dt>When fetching resources for an element</dt>
+
+     <dd>The element's <code>Document</code>.</dd>
+
+     <dt>When fetching resources in response to a call to an API</dt>
+
+     <dd>The <a href="#active-document">active document</a> of the <a href="#script-s-browsing-context" title="script's
+     browsing context">browsing context</a> of the <a href="#first-script">first
+     script</a>.</dd>
+
+    </dl></li>
 
    <li>
 
@@ -6511,10 +6532,7 @@
   a <a href="#scroll-to-fragid" title="navigate-fragid">fragment identifier</a> on the
   page. <span class="impl"><a href="#the-document-s-current-address">The document's current address</a>
   must be set to <a href="#the-document-s-address">the document's address</a> when the
-  <code>Document</code> is created.</span><p>For purposes of generating the <i>address of the resource from
-  which Request-URIs are obtained</i> as required by HTTP for the
-  <code title="http-referer">Referer</code> (sic) header, the user
-  agent must use <a href="#the-document-s-current-address">the document's current address</a>. <a href="#references">[HTTP]</a><p>When a <code>Document</code> is created by a <a href="#concept-script" title="concept-script">script</a> using the <code title="">createDocument()</code> API, <a href="#the-document-s-address">the document's
+  <code>Document</code> is created.</span><p>When a <code>Document</code> is created by a <a href="#concept-script" title="concept-script">script</a> using the <code title="">createDocument()</code> API, <a href="#the-document-s-address">the document's
   address</a> is the same as <a href="#the-document-s-address">the document's address</a> of
   the <a href="#active-document">active document</a> of the <a href="#script-s-browsing-context">script's browsing
   context</a>.<p><code>Document</code> objects are assumed to be <dfn id="xml-documents">XML
@@ -41634,8 +41652,8 @@
   <a href="#browsing-context">browsing context</a> was just created as part of the
   <a href="#the-rules-for-choosing-a-browsing-context-given-a-browsing-context-name">the rules for choosing a browsing context given a browsing
   context name</a>. The navigation must be done with the <a href="#script-s-browsing-context" title="script's browsing context">browsing context</a> of the
-  <a href="#concept-script" title="concept-script">script</a> that invoked the method
-  as the <a href="#source-browsing-context">source browsing context</a>.</p>
+  <a href="#first-script">first script</a> as the <a href="#source-browsing-context">source browsing
+  context</a>.</p>
 
   <p>The method must return the <code><a href="#windowproxy">WindowProxy</a></code> object of the
   <a href="#browsing-context">browsing context</a> that was navigated, or null if no

Received on Friday, 12 June 2009 00:24:28 UTC