-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Add the change event for the Cookie Store API #16568
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
Conversation
...e-store/change_eventhandler_for_http_cookie_and_set_cookie_headers.https.window-expected.txt
Outdated
Show resolved
Hide resolved
...orted/w3c/web-platform-tests/cookie-store/cookieStore_event_delete.https.window-expected.txt
Outdated
Show resolved
Hide resolved
|
EWS run on previous version of this PR (hash 65815ac)
|
65815ac to
2058897
Compare
|
EWS run on previous version of this PR (hash 2058897) |
...ported/w3c/web-platform-tests/cookie-store/cookieStore_event_basic.https.window-expected.txt
Outdated
Show resolved
Hide resolved
2058897 to
4e6d19b
Compare
|
EWS run on previous version of this PR (hash 4e6d19b)
|
|
Please look into EWS failures. |
4e6d19b to
6d5efcb
Compare
|
EWS run on previous version of this PR (hash 6d5efcb) |
...latform-tests/cookie-store/change_eventhandler_for_document_cookie.https.window-expected.txt
Outdated
Show resolved
Hide resolved
6d5efcb to
1ba7dda
Compare
|
EWS run on previous version of this PR (hash 1ba7dda)
|
...latform-tests/cookie-store/change_eventhandler_for_document_cookie.https.window-expected.txt
Outdated
Show resolved
Hide resolved
1ba7dda to
aafa456
Compare
cdumez
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM assuming the bots are happy.
|
EWS run on current version of this PR (hash aafa456)
|
https://bugs.webkit.org/show_bug.cgi?id=260028 Reviewed by Chris Dumez. CookieStore now subclasses CookieChangeListener so that when an event listener changes, it can register (or unregister) itself as a listener. If it is registered and a cookie changed, the relevant function (cookiesAdded or cookiesDeleted) will be called to fire a change event. * LayoutTests/TestExpectations: * LayoutTests/imported/w3c/web-platform-tests/cookie-store/change_eventhandler_for_document_cookie.https.window-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/cookie-store/change_eventhandler_for_http_cookie_and_set_cookie_headers.https.window-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/cookie-store/cookieStore_event_basic.https.window-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/cookie-store/cookieStore_event_delete.https.window-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/cookie-store/cookieStore_event_overwrite.https.window-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/cookie-store/httponly_cookies.https.window-expected.txt: * LayoutTests/platform/mac-monterey/imported/w3c/web-platform-tests/cookie-store/change_eventhandler_for_document_cookie.https.window-expected.txt: Added. * LayoutTests/platform/mac-monterey/imported/w3c/web-platform-tests/cookie-store/change_eventhandler_for_http_cookie_and_set_cookie_headers.https.window-expected.txt: Added. * Source/WebCore/Modules/cookie-store/CookieChangeEvent.idl: * Source/WebCore/Modules/cookie-store/CookieListItem.h: (WebCore::CookieListItem::CookieListItem): * Source/WebCore/Modules/cookie-store/CookieStore.cpp: (WebCore::CookieStore::CookieStore): (WebCore::CookieStore::get): (WebCore::CookieStore::getAll): (WebCore::CookieStore::set): (WebCore::CookieStore::cookiesAdded): (WebCore::CookieStore::cookiesDeleted): (WebCore::CookieStore::stop): (WebCore::CookieStore::virtualHasPendingActivity const): (WebCore::CookieStore::eventListenersDidChange): * Source/WebCore/Modules/cookie-store/CookieStore.h: * Source/WebCore/loader/CookieJar.h: Canonical link: https://commits.webkit.org/266850@main
aafa456 to
5e29d99
Compare
|
Committed 266850@main (5e29d99): https://commits.webkit.org/266850@main Reviewed commits have been landed. Closing PR #16568 and removing active labels. |
5e29d99
aafa456