Skip to content

Commit 83c9192

Browse files
bvandersloot-mozillaannevk
authored andcommitted
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 e21bd3b commit 83c9192

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

source

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2707,6 +2707,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
27072707
<li><dfn data-x="concept-request-initiator-type" data-x-href="https://fetch.spec.whatwg.org/#request-initiator-type">initiator type</dfn></li>
27082708
<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>
27092709
<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>
2710+
<li><dfn data-x="concept-request-top-level-navigation-initiator-origin" data-x-href="https://fetch.spec.whatwg.org/#request-top-level-navigation-initiator-origin">top-level navigation initiator origin</dfn></li>
27102711
<li><dfn data-x-href="https://fetch.spec.whatwg.org/#concept-request-add-range-header">add a range header</dfn></li>
27112712
</ul>
27122713
</li>
@@ -103476,6 +103477,12 @@ location.href = '#foo';</code></pre>
103476103477
</dl>
103477103478
</li>
103478103479

103480+
<li><p>If <var>navigable</var> is a <span>top-level traversable</span>, then set
103481+
<var>request</var>'s <span
103482+
data-x="concept-request-top-level-navigation-initiator-origin">top-level navigation initiator
103483+
origin</span> to <var>entry</var>'s <span data-x="she-document-state">document state</span>'s
103484+
<span data-x="document-state-initiator-origin">initiator origin</span></p></li>
103485+
103479103486
<li>
103480103487
<p>If <var>request</var>'s <span data-x="concept-request-client">client</span> is null:</p>
103481103488

0 commit comments

Comments
 (0)