Skip to content

Commit fb9259d

Browse files
Add the request initiator origin and fix its use
1 parent 5971b14 commit fb9259d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

fetch.bs

+5-2
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ urlPrefix:https://www.ietf.org/archive/id/draft-annevk-johannhof-httpbis-cookies
6767
urlPrefix:https://html.spec.whatwg.org#;type:dfn;spec:html
6868
url:TODO;text:ancestry;for:environment
6969
url:TODO;text:has storage access;for:environment
70-
url:TODO;text:initiator origin;for:request
7170
</pre>
7271

7372
<pre class=biblio>
@@ -1957,6 +1956,10 @@ not always relevant and might require different behavior.
19571956
"<code>client</code>" or an <a for=/>origin</a>. Unless stated otherwise it is
19581957
"<code>client</code>".
19591958

1959+
<p>A <a for=/>request</a> has an associated
1960+
<dfn export for=request id=concept-request-navigation-initiator-origin>navigation initiator origin</dfn>, which is
1961+
an <a for=/>origin</a> or null. Unless stated otherwise it is null.
1962+
19601963
<p class=note>"<code>client</code>" is changed to an <a for=/>origin</a> during
19611964
<a lt=fetch for=/>fetching</a>. It provides a convenient way for standards to not have to set
19621965
<a for=/>request</a>'s <a for=request>origin</a>.
@@ -3385,11 +3388,11 @@ given a <a for=/>request</a> <var>request</var> and a <a for=/>response</a> <var
33853388
<p>To <dfn>determine the same-site mode</dfn> for a given <a for=/>request</a> <var>request</var>, run these steps:
33863389
<ol>
33873390
<li><p><a for=/>Assert</a>: <var>request</var>'s <a for=request>method</a> is "GET" or "POST".
3391+
<li><p>If <var>request</var>'s <a for=request>navigation initiator origin</a> is not null and is not <a for=/>same site</a> to <var>request</var>'s <a for=request>URL</a>'s <a for=url>origin</a>, return "<code>UnsetOrLess</code>".
33883392
<li><p>If <var>request</var>'s <a for=request>method</a> is "GET" and
33893393
<var>request</var>'s <a for=request>destination</a> is "document", return "<code>LaxOrLess</code>".
33903394
<li><p>If <var>request</var>'s <a for=request>client</a>'s <a for=environment>ancestry</a> is "<code>cross-site</code>", return "<code>UnsetOrLess</code>".
33913395
<li><p>If <var>request</var>'s <a for=request>redirect-taint</a> is "<code>Cross-Site</code>", return "<code>UnsetOrLess</code>".
3392-
<li><p>If <var>request</var>'s <a for=request>initiator origin</a> is not <a for=/>same site</a> to <var>request</var>'s <a for=request>URL</a>'s <a for=url>origin</a>, return "<code>UnsetOrLess</code>".
33933396
<li><p>Return "StrictOrLess".
33943397
</ol>
33953398
</div>

0 commit comments

Comments
 (0)