Skip to content

Commit

Permalink
resolve the differences between noreferrer and referrerpolicy
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0ttbeardsley committed Oct 28, 2015
1 parent 7c76339 commit dbe6b0e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions index.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -536,24 +536,24 @@ <h3 id="referrer-policy-delivery-referrer-attribute">Delivery
<dd><a><code>No Referrer</code></a></dd>
<dt>origin</dt>
<dd><a><code>Origin</code></a></dd>
<dt>no-referrer-when-downgrade</dt>
<dd><a><code>No Referrer When Downgrade</code></a></dd>
<dt>origin-when-cross-origin</dt>
<dd><a><code>Origin When Cross-Origin</code></a></dd>
<dt>unsafe-url</dt>
<dd><a><code>Unsafe URL</code></a></dd>
</dl>

A policy delivered via a <code>referrerpolicy</code> attribute on an element
takes precedence over the policy defined for the whole document via CSP or
a <a element>meta</a> element.
a <a element>meta</a> element unless the attribute value is invalid.

ISSUE: If an <code><a element>a</a></code>
NOTE: If an <code><a element>a</a></code>
or <code><a element>area</a></code> element includes both
a <code>referrerpolicy</code> attribute as well as
a <a href="https://html.spec.whatwg.org/#link-type-noreferrer"><code>noreferrer</code>
link type</a>, should the policy of the <code>referrerpolicy</code> attribute
take precedence over the link type, as suggested
by <a href="https://lists.w3.org/Archives/Public/public-webappsec/2015Feb/0235.html">Martin
Thomson</a>, or should we take the more conservative approach as suggested
by <a href="https://lists.w3.org/Archives/Public/public-webappsec/2015Feb/0283.html">Brian
Smith</a> and honor the <code>noreferrer</code> link type?
a <a><code>noreferrer</code></a> link type then the <a><code>noreferrer</code></a>
link type will take precedence and the <a><code>No Referrer</code></a> policy
takes effect.

<h3 id="referrer-policy-delivery-implicit">Implicit Delivery</h3>

Expand Down

0 comments on commit dbe6b0e

Please sign in to comment.