Skip to content

Commit 301ed67

Browse files
authored
Fix use of "active document" in determining referrer (#63)
"Determine request's referrer" now uses the environment's global object's associated Document instead of the active document of its browsing context. Fixes #29.
1 parent e5d485b commit 301ed67

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,7 @@
10581058
<div class="head">
10591059
<p data-fill-with="logo"><a class="logo" href="http://www.w3.org/"> <img alt="W3C" height="48" src="https://www.w3.org/Icons/w3c_home" width="72"> </a> </p>
10601060
<h1 class="p-name no-ref" id="title">Referrer Policy</h1>
1061-
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Editor’s Draft, <time class="dt-updated" datetime="2016-07-15">15 July 2016</time></span></h2>
1061+
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Editor’s Draft, <time class="dt-updated" datetime="2016-08-17">17 August 2016</time></span></h2>
10621062
<div data-fill-with="spec-metadata">
10631063
<dl>
10641064
<dt>This version:
@@ -1481,7 +1481,8 @@ <h3 class="heading settled" data-level="7.3" id="determine-requests-referrer"><s
14811481
If <var>environment</var>’s <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/webappapis.html#concept-settings-object-global">global
14821482
object</a> is a <code class="idl"><a data-link-type="idl" href="https://html.spec.whatwg.org/multipage/browsers.html#window">Window</a></code> object, then
14831483
<ol>
1484-
<li>Let <var>document</var> be the <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/browsers.html#active-document">active document</a> of <var>environment</var>’s <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/webappapis.html#responsible-browsing-context">responsible browsing context</a>.
1484+
<li>Let <var>document</var> be
1485+
the <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/browsers.html#concept-document-window">associated <code>Document</code></a> of <var>environment</var>’s <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/webappapis.html#concept-settings-object-global">global object</a>.
14851486
<li>If <var>document</var>’s <a data-link-type="dfn" href="https://tools.ietf.org/html/rfc6454#section-3.2">origin</a> is an <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/browsers.html#concept-origin-opaque">opaque origin</a>,
14861487
return <code>no referrer</code>.
14871488
<li>While <var>document</var> is <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/embedded-content.html#an-iframe-srcdoc-document">an <code>iframe srcdoc</code> document</a>, let <var>document</var> be <var>document</var>’s <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/browsers.html#concept-document-bc">browsing context</a>’s <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/browsers.html#browsing-context-container">browsing context
@@ -1732,9 +1733,9 @@ <h3 class="no-num heading settled" id="index-defined-elsewhere"><span class="con
17321733
<ul>
17331734
<li><a href="https://html.spec.whatwg.org/multipage/dom.html#document">Document</a>
17341735
<li><a href="https://html.spec.whatwg.org/multipage/semantics.html#the-a-element">a</a>
1735-
<li><a href="https://html.spec.whatwg.org/multipage/browsers.html#active-document">active document</a>
17361736
<li><a href="https://html.spec.whatwg.org/multipage/embedded-content.html#an-iframe-srcdoc-document">an iframe srcdoc document</a>
17371737
<li><a href="https://html.spec.whatwg.org/multipage/infrastructure.html#ascii-case-insensitive">ascii case-insensitive match</a>
1738+
<li><a href="https://html.spec.whatwg.org/multipage/browsers.html#concept-document-window">associated document</a>
17381739
<li><a href="https://html.spec.whatwg.org/multipage/browsers.html#browsing-context">browsing context</a>
17391740
<li><a href="https://html.spec.whatwg.org/multipage/browsers.html#browsing-context-container">browsing context container</a>
17401741
<li><a href="https://html.spec.whatwg.org/multipage/webappapis.html#creation-url">creation url</a>
@@ -1750,7 +1751,6 @@ <h3 class="no-num heading settled" id="index-defined-elsewhere"><span class="con
17501751
<li><a href="https://html.spec.whatwg.org/multipage/dom.html#concept-document-referrer-policy">referrer policy</a>
17511752
<li><a href="https://html.spec.whatwg.org/multipage/infrastructure.html#referrer-policy-attribute">referrer policy attribute</a>
17521753
<li><a href="https://html.spec.whatwg.org/multipage/semantics.html#attr-a-referrerpolicy">referrerpolicy</a>
1753-
<li><a href="https://html.spec.whatwg.org/multipage/webappapis.html#responsible-browsing-context">responsible browsing context</a>
17541754
<li><a href="https://html.spec.whatwg.org/multipage/workers.html#run a worker">running a worker</a>
17551755
</ul>
17561756
<li>

index.src.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ <h1>Referrer Policy</h1>
4545
urlPrefix: browsers.html
4646
text: opaque origin; url: concept-origin-opaque
4747
text: active document
48+
text: associated Document; url: concept-document-window
4849
text: parse a sandboxing directive
4950
text: forced sandboxing flag set
5051
text: auxiliary browsing context
@@ -703,8 +704,9 @@ <h3 id="determine-requests-referrer">
703704
object</a> is a {{Window}} object, then
704705

705706
<ol>
706-
<li>Let |document| be the <a>active document</a> of
707-
|environment|'s <a>responsible browsing context</a>.</li>
707+
<li>Let |document| be
708+
the <a>associated <code>Document</code></a> of |environment|'s
709+
<a for="environment settings object">global object</a>.</li>
708710

709711
<li>If |document|'s <a>origin</a> is an <a>opaque origin</a>,
710712
return <code>no referrer</code>.</li>

0 commit comments

Comments
 (0)