Skip to content

Conversation

annevk
Copy link
Member

@annevk annevk commented Aug 7, 2025

Also correct the algorithm as it incorrectly assumed that path could be null when in fact it's always a string.

Tests: web-platform-tests/wpt#54264

Closes #242.

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


Preview | Diff

Also correct the algorithm as it incorrectly assumed that path could be null when in fact it's always a string.

Tests: ...

Closes #242.
Copy link
Member

@DCtheTall DCtheTall left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@annevk
Copy link
Member Author

annevk commented Aug 12, 2025

This patch does not match what Chrome does. Chrome uses https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-layered-cookies#section-5.3.3 which is currently not exported, but I suppose it should be.

Edit: it should now be good.

@annevk annevk added the do not merge yet Pull request must not be merged per rationale in comment label Aug 12, 2025
annevk added a commit to annevk/WebKit that referenced this pull request Aug 12, 2025
annevk added a commit to annevk/WebKit that referenced this pull request Aug 13, 2025
@annevk annevk removed the do not merge yet Pull request must not be merged per rationale in comment label Aug 13, 2025
annevk added a commit to annevk/WebKit that referenced this pull request Aug 14, 2025
annevk added a commit to web-platform-tests/wpt that referenced this pull request Aug 14, 2025
@annevk annevk merged commit b4cafb5 into main Aug 14, 2025
2 of 3 checks passed
@annevk annevk deleted the annevk/empty-string-path- branch August 14, 2025 15:08
webkit-commit-queue pushed a commit to annevk/WebKit that referenced this pull request Aug 14, 2025
lando-prod-mozilla bot pushed a commit to mozilla-firefox/firefox that referenced this pull request Aug 25, 2025
…ulting, a=testonly

Automatic update from web-platform-tests
Cookie Store API: empty string path defaulting

For whatwg/cookiestore#283.
--

wpt-commits: 65753567cf5b437a93568ec134eb76b2c75ced7d
wpt-pr: 54264
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.

Ambiguity on setting a cookie with "" (empty string) as the path.
2 participants