[html5] r3223 - [] (0) Clarify 'Referer' handling in general. Fix it for window.open() spcifically.
whatwg at whatwg.org
whatwg at whatwg.org
Thu Jun 11 17:23:32 PDT 2009
Author: ianh
Date: 2009-06-11 17:23:30 -0700 (Thu, 11 Jun 2009)
New Revision: 3223
Modified:
index
source
Log:
[] (0) Clarify 'Referer' handling in general. Fix it for window.open() spcifically.
Modified: index
===================================================================
--- index 2009-06-11 21:39:55 UTC (rev 3222)
+++ index 2009-06-12 00:23:30 UTC (rev 3223)
@@ -5147,8 +5147,29 @@
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=#refsHTTP>[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>
<p>If there are cookies to be set, then the user agent must run
@@ -7168,11 +7189,6 @@
must be set to <a href="#the-document's-address">the document's address</a> when the
<code>Document</code> is created.</span></p>
- <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=#refsHTTP>[HTTP]</a></p>
-
<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
@@ -46447,8 +46463,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
Modified: source
===================================================================
--- source 2009-06-11 21:39:55 UTC (rev 3222)
+++ source 2009-06-12 00:23:30 UTC (rev 3223)
@@ -4817,6 +4817,32 @@
title="javascript protocol"><code title="">javascript:</code>
URLs</span></span>, etc).</p>
+ <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 <span>the document's current address</span> of the
+ appropriate <code>Document</code> as given by this list. <a
+ href="#refsHTTP">[HTTP]</a></p>
+
+ <dl class="switch">
+
+ <dt>When <span title="navigate">navigating</span></dt>
+
+ <dd>The <span>active document</span> of the <span>source browsing
+ context</span>.</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 <span>active document</span> of the <span title="script's
+ browsing context">browsing context</span> of the <span>first
+ script</span>.</dd>
+
+ </dl>
+
</li>
<li>
@@ -7231,12 +7257,6 @@
must be set to <span>the document's address</span> when the
<code>Document</code> is created.</span></p>
- <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 <span>the document's current address</span>. <a
- href="#refsHTTP">[HTTP]</a></p>
-
<p>When a <code>Document</code> is created by a <span
title="concept-script">script</span> using the <code
title="">createDocument()</code> API, <span>the document's
@@ -52900,8 +52920,8 @@
<span>the rules for choosing a browsing context given a browsing
context name</span>. The navigation must be done with the <span
title="script's browsing context">browsing context</span> of the
- <span title="concept-script">script</span> that invoked the method
- as the <span>source browsing context</span>.</p>
+ <span>first script</span> as the <span>source browsing
+ context</span>.</p>
<p>The method must return the <code>WindowProxy</code> object of the
<span>browsing context</span> that was navigated, or null if no
More information about the Commit-Watchers
mailing list