Skip to content

Commit

Permalink
[] (0) Clarify how pushState() and transfering nodes between document…
Browse files Browse the repository at this point in the history
…s affects Referer: computation in the fetch algorithm.

git-svn-id: http://svn.whatwg.org/webapps@4084 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Oct 5, 2009
1 parent e6d0ca6 commit 0ee2037
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 46 deletions.
49 changes: 28 additions & 21 deletions index
Expand Up @@ -5011,6 +5011,30 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
<dfn id=about:blank><code>about:blank</code></dfn>, then return the empty string
and abort these steps.</li>

<li>

<p>Generate 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 from <a href="#the-document's-current-address">the
document's current address</a> of the appropriate
<code>Document</code> as given by the folloing 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>Perform the remaining steps asynchronously.</li>

<li>
Expand All @@ -5032,28 +5056,11 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
redirects, <a href=#concept-js-deref title=concept-js-deref>dereferencing <span title="javascript protocol"><code title="">javascript:</code>
URLs</span></a>, 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 <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>
<p>For the purposes of the <code title=http-referer>Referer</code> (sic) header, use the
<i>address of the resource from which Request-URIs are
obtained</i> generated in the earlier step.</p>

</dl><p>For the purposes of the <code title=http-origin>Origin</code>
<p>For the purposes of the <code title=http-origin>Origin</code>
header, if the <a href=#fetch title=fetch>fetching algorithm</a> was
explicitly initiated from an <i title="">origin</i>, then <i title="">the origin that initiated the HTTP request</i> is <i title="">origin</i>. Otherwise, this is <i title="">a request from
a "privacy-sensitive" context</i>. <a href=#refsORIGIN>[ORIGIN]</a></p>
Expand Down
59 changes: 34 additions & 25 deletions source
Expand Up @@ -4688,6 +4688,36 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
<dfn><code>about:blank</code></dfn>, then return the empty string
and abort these steps.</p></li>

<li>

<p>Generate 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 from <span>the
document's current address</span> of the appropriate
<code>Document</code> as given by the folloing 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><p>Perform the remaining steps asynchronously.</p></li>

<li>
Expand All @@ -4712,31 +4742,10 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
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>
<p>For the purposes of the <code
title="http-referer">Referer</code> (sic) header, use the
<i>address of the resource from which Request-URIs are
obtained</i> generated in the earlier step.</p>

<p>For the purposes of the <code title="http-origin">Origin</code>
header, if the <span title="fetch">fetching algorithm</span> was
Expand Down

0 comments on commit 0ee2037

Please sign in to comment.