Skip to content

Commit

Permalink
Honor srcdoc document referrer policies when set
Browse files Browse the repository at this point in the history
If a srcdoc document contains a meta element with a referrer policy, we
should use that as the document's referrer policy instead of walking up
the tree to find the first non-srcdoc document's referrer policy.

(As discussed in #1559 (comment))
  • Loading branch information
estark37 authored and domenic committed Nov 23, 2016
1 parent c369309 commit 3147414
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions source
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -77867,9 +77867,11 @@ console.assert(iframeWindow.frameElement === null);
<li><p>Let <var>document</var> be the <code>Document</code> with which <var>window</var> is <li><p>Let <var>document</var> be the <code>Document</code> with which <var>window</var> is
currently associated.</p></li> currently associated.</p></li>


<li><p>While <var>document</var> is <span>an <code>iframe</code> <code <li><p>While <var>document</var> is <span>an <code>iframe</code>
data-x="attr-iframe-srcdoc">srcdoc</code> document</span>, set <var>document</var> to <code data-x="attr-iframe-srcdoc">srcdoc</code> document</span> and <var>document</var>'s
<var>document</var>'s <span data-x="concept-document-bc">browsing context</span>'s <span data-x="concept-document-referrer-policy">referrer policy</span> is the empty
string, set <var>document</var> to <var>document</var>'s
<span data-x="concept-document-bc">browsing context</span>'s
<span>browsing context container</span>'s <span>node document</span>.</p></li> <span>browsing context container</span>'s <span>node document</span>.</p></li>


<li><p>Return <var>document</var>'s <span data-x="concept-document-referrer-policy">referrer <li><p>Return <var>document</var>'s <span data-x="concept-document-referrer-policy">referrer
Expand Down

0 comments on commit 3147414

Please sign in to comment.