Skip to content

Add new environment settings object field "cross site ancestry" for SameSite cookies work #1775

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 1, 2025

Conversation

bvandersloot-mozilla
Copy link
Contributor

@bvandersloot-mozilla bvandersloot-mozilla commented Jun 3, 2025

To define how cookies work correctly, particularly around the SameSite attribute, we need to know whether or not an environment settings object has any cross-site ancestors. This is making sure the ESO definition in ServiceWorkers also defines this member algorithm.

We will have to land the PR that adds this to HTML before landing this, but it'd be nice to get this approved before we alter HTML so everything goes smoothly.

See whatwg/html#9000 for even broader context.


Preview | Diff

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.

For some reason I thought service workers had to be more complicated, but I suspect that's mainly when Storage Access comes into play.

annevk pushed a commit to whatwg/html that referenced this pull request Jul 25, 2025
This helps with the HTTP WG's layered cookies draft integration work. whatwg/fetch#1807 depends on this state being available in so we can define SameSite properly.

Corresponding Service Worker PR: w3c/ServiceWorker#1775.
@yoshisatoyanagisawa
Copy link
Collaborator

whatwg/html#11133 looks merged.
I am also going to merge this.

@yoshisatoyanagisawa yoshisatoyanagisawa merged commit 83a8993 into w3c:main Aug 1, 2025
2 checks passed
github-actions bot added a commit that referenced this pull request Aug 1, 2025
…ameSite cookies work (#1775)

SHA: 83a8993
Reason: push, by yoshisatoyanagisawa

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit to asleekgeek/ServiceWorker that referenced this pull request Aug 1, 2025
…ameSite cookies work (w3c#1775)

SHA: 83a8993
Reason: push, by pull[bot]

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit to yoshisatoyanagisawa/ServiceWorker that referenced this pull request Aug 6, 2025
…ameSite cookies work (w3c#1775)

SHA: 83a8993
Reason: push, by yoshisatoyanagisawa

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants