Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3996020d9c9cde340f8c1607915dfa471d8658e4
      
https://github.com/WebKit/WebKit/commit/3996020d9c9cde340f8c1607915dfa471d8658e4
  Author: Charlie Wolfe <[email protected]>
  Date:   2026-07-28 (Tue, 28 Jul 2026)

  Changed paths:
    M 
LayoutTests/imported/w3c/web-platform-tests/cookiestore/cookieStore_subscribe_arguments.https.any-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/cookiestore/cookieStore_subscribe_arguments.https.any.serviceworker-expected.txt
    M Source/WebCore/workers/service/server/SWServerRegistration.cpp
    M Source/WebCore/workers/service/server/SWServerRegistration.h

  Log Message:
  -----------
  [Cookie Store] Preserve cookie change subscription list order
https://bugs.webkit.org/show_bug.cgi?id=320332
rdar://183271849

Reviewed by Rupin Mittal.

The Cookie Store specification stores a service worker registration's cookie 
change subscriptions
in a list. subscribe() appends new subscriptions to that list, and 
getSubscriptions() iterates the
list in order.

Use ListHashSet to preserve the specified list order while avoiding duplicate 
subscriptions.

* 
LayoutTests/imported/w3c/web-platform-tests/cookiestore/cookieStore_subscribe_arguments.https.any-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/cookiestore/cookieStore_subscribe_arguments.https.any.serviceworker-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/cookiestore/httponly_cookies.https.window-expected.txt:
* Source/WebCore/workers/service/server/SWServerRegistration.cpp:
(WebCore::SWServerRegistration::addCookieChangeSubscriptions):
(WebCore::SWServerRegistration::removeCookieChangeSubscriptions):
* Source/WebCore/workers/service/server/SWServerRegistration.h:

Canonical link: https://commits.webkit.org/318087@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to