Skip to content

Commit 3b6a99b

Browse files
Pass a top-level navigation initiator origin to Fetch
This helps with the HTTP WG's layered cookies draft integration work. whatwg/fetch#1807 depends on this state being passed in so we can define SameSite=Strict properly.
1 parent 38cf6c9 commit 3b6a99b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

source

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2689,6 +2689,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
26892689
<li><dfn data-x="concept-request-initiator-type" data-x-href="https://fetch.spec.whatwg.org/#request-initiator-type">initiator type</dfn></li>
26902690
<li><dfn data-x="concept-request-service-workers-mode" data-x-href="https://fetch.spec.whatwg.org/#request-service-workers-mode">service-workers mode</dfn></li>
26912691
<li><dfn data-x="concept-request-traversable-for-user-prompts" data-x-href="https://fetch.spec.whatwg.org/#concept-request-window">traversable for user prompts</dfn></li>
2692+
<li><dfn data-x-href="https://fetch.spec.whatwg.org/#request-top-level-navigation-initiator-origin">top-level navigation initiator origin</dfn></li>
26922693
<li><dfn data-x-href="https://fetch.spec.whatwg.org/#concept-request-add-range-header">add a range header</dfn></li>
26932694
</ul>
26942695
</li>
@@ -104298,6 +104299,11 @@ location.href = '#foo';</code></pre>
104298104299
</dl>
104299104300
</li>
104300104301

104302+
<li><p>If <var>navigable</var> is a <span>top-level traversable</span>, then set
104303+
<var>request</var>'s <span>top-level navigation initiator origin</span> to <var>entry</var>'s
104304+
<span data-x="she-document-state">document state</span>'s <span
104305+
data-x="document-state-initiator-origin">initiator origin</span>.</p></li>
104306+
104301104307
<li>
104302104308
<p>If <var>request</var>'s <span data-x="concept-request-client">client</span> is null:</p>
104303104309

0 commit comments

Comments
 (0)