You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<dfnid="same-origin-data-url-flag">same-origin data-URL flag</dfn>. Unless stated otherwise it is unset.
811
812
812
813
<p>A <ahref="#concept-request" title="concept-request">request</a> has an associated
813
-
<dfnid="concept-request-referrer" title="concept-request-referrer">referrer</dfn>, which is <ititle="">no referrer</i>,
814
-
<ititle="">client</i>, or a <aclass="external" href="https://url.spec.whatwg.org/#concept-url" title="concept-url">URL</a>. Unless
815
-
stated otherwise it is <ititle="">client</i>.
814
+
<dfnid="concept-request-referrer" title="concept-request-referrer">referrer</dfn>, which is "<code>no-referrer</code>",
815
+
"<code>client</code>", or a <aclass="external" href="https://url.spec.whatwg.org/#concept-url" title="concept-url">URL</a>.
816
+
Unless stated otherwise it is "<code>client</code>".
817
+
818
+
<p>A <ahref="#concept-request" title="concept-request">request</a> has an associated
819
+
<dfnid="concept-request-referrer-policy" title="concept-request-referrer-policy">referrer policy</dfn>, which is a
820
+
<ahref="#concept-referrer-policy" title="concept-referrer-policy">referrer policy</a>. Unless stated otherwise it is
821
+
the empty string.
822
+
823
+
<pclass="note no-backref">This can be used to override a referrer policy associated with
824
+
an <aclass="external" href="https://html.spec.whatwg.org/multipage/webappapis.html#environment-settings-object">environment settings object</a>.
825
+
<ahref="#refsREFERRER">[REFERRER]</a>
816
826
817
827
<p>A <ahref="#concept-request" title="concept-request">request</a> has an associated
818
828
<dfnid="synchronous-flag">synchronous flag</dfn>. Unless stated otherwise it is unset.
<ahref="https://w3c.github.io/webappsec/specs/mixedcontent/#should-block-response">should <var>internalResponse</var> to <var>request</var> be blocked as mixed content</a>,
1650
1681
<spanclass="XXX">should <var>internalResponse</var> to <vartitle="">request</var> be blocked as content security</span>,
1651
1682
or
1652
-
<span>should <var>internalResponse</var> to <var><ahref="#request">request</a></var> be blocked due to nosniff</span>
1683
+
<ahref="#should-response-to-request-be-blocked-due-to-nosniff?" title="should response to request be blocked due to nosniff">should <var>internalResponse</var> to <var>request</var> be blocked due to nosniff</a>
1653
1684
returns <btitle="">blocked</b>, set <vartitle="">response</var> to a
<aclass="external" href="https://url.spec.whatwg.org/#concept-url-scheme-data" title="concept-url-scheme-data">scheme data</a> is
1772
+
<aclass="external" href="https://url.spec.whatwg.org/#non_relative-flag">non-relative flag</a> is set and
1773
+
<aclass="external" href="https://url.spec.whatwg.org/#concept-url-path" title="concept-url-path">path</a> contains a single string
1742
1774
"<codetitle="">blank</code>", return a <ahref="#concept-response" title="concept-response">response</a> whose
1743
1775
<ahref="#concept-response-header-list" title="concept-response-header-list">header list</a> consist of a single
<aclass="external" href="https://url.spec.whatwg.org/#concept-url-scheme-data" title="concept-url-scheme-data">scheme data</a> is
1788
+
<aclass="external" href="https://url.spec.whatwg.org/#non_relative-flag">non-relative flag</a> is set and
1789
+
<aclass="external" href="https://url.spec.whatwg.org/#concept-url-path" title="concept-url-path">path</a> contains a single string
1757
1790
"<codetitle="">unicorn</code>", return a <ahref="#concept-response" title="concept-response">response</a>
1758
1791
whose <ahref="#concept-response-header-list" title="concept-response-header-list">header list</a> consist of a single
<aclass="external" href="https://url.spec.whatwg.org/#concept-url-serializer" title="concept-url-serializer">serialized</a> and
<vartitle="">referrer</var> with <var>baseURL</var>.
3583
+
3584
+
<li><p>If <var>parsedReferrer</var>'s
3585
+
<aclass="external" href="https://url.spec.whatwg.org/#non_relative-flag">non-relative flag</a> is set,
3586
+
<aclass="external" href="https://url.spec.whatwg.org/#concept-url-scheme" title="concept-url-scheme">scheme</a> is
3587
+
"<code>about</code>", and
3588
+
<aclass="external" href="https://url.spec.whatwg.org/#concept-url-path" title="concept-url-path">path</a> contains a single string
3589
+
"<code>client</code>", set <vartitle="">request</var>'s
3590
+
<ahref="#concept-request-referrer" title="concept-request-referrer">referrer</a> to "<code>client</code>" and
3591
+
terminate these substeps.
3592
+
3593
+
<li><p>If <var>parsedReferrer</var>'s
3594
+
<aclass="external" href="https://url.spec.whatwg.org/#concept-url-origin" title="concept-url-origin">origin</a> is not
3595
+
<aclass="external" href="https://html.spec.whatwg.org/multipage/browsers.html#same-origin">same origin</a> with <vartitle="">origin</var>,
3596
+
<aclass="external" href="https://heycam.github.io/webidl/#dfn-throw">throw</a> a <codetitle="">TypeError</code>.
3597
+
3598
+
<li><p>Set <vartitle="">request</var>'s
3599
+
<ahref="#concept-request-referrer" title="concept-request-referrer">referrer</a> to <var>parsedReferrer</var>.
3600
+
</ol>
3601
+
3602
+
<li><p>If <vartitle="">init</var>'s <code><ahref="#referrerpolicy">referrerPolicy</a></code> member is present, set
3603
+
<vartitle="">request</var>'s
3604
+
<ahref="#concept-request-referrer-policy" title="concept-request-referrer-policy">referrer policy</a> to it.
3605
+
3513
3606
<li><p>Let <vartitle="">mode</var> be <vartitle="">init</var>'s <codetitle="">mode</code>
3514
3607
member if it is present, and <vartitle="">fallbackMode</var> otherwise.
0 commit comments