[webkit-changes] [WebKit/WebKit] 78e86d: Support partitioned cookies in Clear-Site-Data: Co...

Commit Queue noreply at github.com
Mon Dec 9 07:49:22 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 78e86d4b6b77da06ba4eac1a2e4c6ac59300dcda
      https://github.com/WebKit/WebKit/commit/78e86d4b6b77da06ba4eac1a2e4c6ac59300dcda
  Author: Matthew Finkel <m_finkel at apple.com>
  Date:   2024-12-09 (Mon, 09 Dec 2024)

  Changed paths:
    M LayoutTests/TestExpectations
    A LayoutTests/http/tests/clear-site-data/resources/clear-site-data-cookies.py
    A LayoutTests/http/tests/clear-site-data/set-and-clear-cookies.https-expected.txt
    A LayoutTests/http/tests/clear-site-data/set-and-clear-cookies.https.html
    M Source/WebCore/platform/network/cocoa/NetworkStorageSessionCocoa.mm

  Log Message:
  -----------
  Support partitioned cookies in Clear-Site-Data: Cookies
https://bugs.webkit.org/show_bug.cgi?id=283552
rdar://140403030

Reviewed by Sihui Liu.

This is another step toward supporting opt-in partitioned cookies. When a
top-level site requests deleting cookies using the Clear-Site-Data header, we
should delete only the site's cookies. When a cross-site subframe requests
deleting cookies using the header, then we should delete only the cookies in
the partition.

* LayoutTests/TestExpectations:
* LayoutTests/http/tests/clear-site-data/set-and-clear-cookies.https-expected.txt: Added.
* LayoutTests/http/tests/clear-site-data/set-and-clear-cookies.https.html: Added.
* Source/WebCore/platform/network/NetworkStorageSession.cpp:
(WebCore::NetworkStorageSession::cookiePartitionIdentifier):
* Source/WebCore/platform/network/NetworkStorageSession.h:
* Source/WebCore/platform/network/cocoa/NetworkStorageSessionCocoa.mm:
(WebCore::NetworkStorageSession::deleteCookies):

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



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


More information about the webkit-changes mailing list