New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update request's referrer policy when fetching #280
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2031,6 +2031,17 @@ <h3>Main fetch</h3> | |
<span data-anolis-ref>MIX</span> | ||
<span data-anolis-ref>CSP</span> | ||
|
||
<li><p>If <var>request</var>'s <span title=concept-request-referrer-policy>referrer policy</span> | ||
is the empty string and <var>request</var>'s | ||
<span title=concept-request-client>client</span> is non-null, set <var>request</var>'s | ||
<span title=concept-request-referrer-policy>referrer policy</span> to <var>request</var>'s | ||
<span title=concept-request-client>client</span>'s associated referrer policy. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Where is "associated referrer policy" defined? Would be nice to directly reference it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I expected it would be added to https://www.w3.org/TR/html5/webappapis.html#settings-object by webappsec-referrer-policy authors in the future. Should I link to https://w3c.github.io/webappsec-referrer-policy/#referrer-policy? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, I think that would be good enough for now. Bit weird that they link to W3C HTML, which is hopelessly wrong. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added a link. |
||
|
||
<li><p>If <var>request</var>'s <span title=concept-request-referrer-policy>referrer policy</span> | ||
is the empty string, set <var>request</var>'s | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "then set" There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. |
||
<span title=concept-request-referrer-policy>referrer policy</span> to | ||
"<code>no-referrer-when-downgrade</code>". | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should maybe add a note here that this is the historical default. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. |
||
|
||
<li> | ||
<p>If <var>request</var>'s <span title=concept-request-referrer>referrer</span> | ||
is not "<code>no-referrer</code>", set <var>request</var>'s | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"then set"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.