-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Properly handle a '/' in the cookie's path when setting a cookie with…
… the Cookie Store API https://bugs.webkit.org/show_bug.cgi?id=259505 Reviewed by Chris Dumez and Alex Christensen. The spec (https://wicg.github.io/cookie-store/#set-cookie-algorithm) dictates that in the set function, if the path is not null, then if the path does not begin with a '/', the promise should be rejected with a TypeError. If the path does begin with a '/', but does not end with a '/', then a '/' should be added, and then the rest of the * LayoutTests/imported/w3c/web-platform-tests/cookie-store/cookieStore_delete_arguments.https.any-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/cookie-store/cookieStore_set_arguments.https.any-expected.txt: * Source/WebCore/Modules/cookie-store/CookieStore.cpp: (WebCore::CookieStore::set): Canonical link: https://commits.webkit.org/266317@main
- Loading branch information
1 parent
5d9f4aa
commit d52eb02
Showing
3 changed files
with
22 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters