Skip to content

Conversation

bvandersloot-mozilla
Copy link
Contributor

@bvandersloot-mozilla bvandersloot-mozilla commented Mar 14, 2025

This is commandeering #8036, and is meant to land with whatwg/fetch#1807 in its place.

  • At least two implementers are interested (and none opposed):
    • Firefox
  • Tests are written and can be reviewed and commented upon at:
  • Implementation bugs are filed:
    • Chromium: …
    • Gecko: …
    • WebKit: …
    • Deno (only for timers, structured clone, base64 utils, channel messaging, module resolution, web workers, and web storage): …
    • Node.js (only for timers, structured clone, base64 utils, channel messaging, and module resolution): …
  • Corresponding HTML AAM & ARIA in HTML issues & PRs:
  • MDN issue is filed: …
  • The top of this comment includes a clear commit message to use.

(See WHATWG Working Mode: Changes for more details.)


/acknowledgements.html ( diff )
/nav-history-apis.html ( diff )
/webappapis.html ( diff )
/workers.html ( diff )
/worklets.html ( diff )

@johannhof
Copy link
Member

This looks good to me, but talking to @cfredric we'd slightly prefer the term "ancestry" with "cross-site" or "same-site" as values. @bvandersloot-mozilla WDYT?

@bvandersloot-mozilla
Copy link
Contributor Author

I think that feedback makes a lot of sense- hanging it on the ESO is probably right.

With respect to behavior when disconnected, I think the only corner case I worry about is if a disconnected document is able to perform fetches and then get reconnected later. In that case it should matter and we'd want some kind of latching to prevent disconnecting documents from being a way to escalate their privileges. If not, then this update should match your sketch for imlementation as a new algorithm on ESOs.

Copy link
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, this looks good to me! Please also work on an update to the service worker spec, as the only other environment settings object on the platform.

I think the only corner case I worry about is if a disconnected document is able to perform fetches and then get reconnected later.

There's no way to reconnect disconnected documents, so I think we're safe!

Copy link
Member

@annevk annevk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I pushed a fixup commit for the final nits.

@annevk
Copy link
Member

annevk commented Jul 25, 2025

I'm going to land the PRs identified in #9000 (comment) (including this one) soonish. We have reduced the scope to essentially only tackle the new way we integrate with Cookies at the IETF (and only for the Cookie and Set-Cookie header at this point). So in effect this should be a non-normative change.

PRs building on top of this work will need to fill out the PR template completely however.

@annevk annevk merged commit baec061 into whatwg:main Jul 25, 2025
2 checks passed
annevk added a commit to whatwg/fetch that referenced this pull request Jul 27, 2025
This builds on whatwg/html#10991 and whatwg/html#11133. This should be a mostly editorial change, but with much more clarity about how the state flows into the IETF side.

Co-authored-by: Johann Hofmann <[email protected]>
Co-authored-by: Anne van Kesteren <[email protected]>
bvandersloot-mozilla added a commit to bvandersloot-mozilla/html that referenced this pull request Aug 6, 2025
bvandersloot-mozilla added a commit to bvandersloot-mozilla/html that referenced this pull request Aug 6, 2025
pmeenan pushed a commit to pmeenan/fetch that referenced this pull request Aug 25, 2025
This builds on whatwg/html#10991 and whatwg/html#11133. This should be a mostly editorial change, but with much more clarity about how the state flows into the IETF side.

Co-authored-by: Johann Hofmann <[email protected]>
Co-authored-by: Anne van Kesteren <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants