[webkit-changes] [WebKit/WebKit] 6dcc24: [cocoa] Cache opt-in partitioned cookie enablement...

Commit Queue noreply at github.com
Wed Jan 15 17:57:55 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6dcc241d7bdc59bf02745294d8e2819c1f998917
      https://github.com/WebKit/WebKit/commit/6dcc241d7bdc59bf02745294d8e2819c1f998917
  Author: Matthew Finkel <m_finkel at apple.com>
  Date:   2025-01-15 (Wed, 15 Jan 2025)

  Changed paths:
    M Source/WebKit/WebProcess/WebPage/Cocoa/WebCookieCacheCocoa.mm
    M Source/WebKit/WebProcess/WebProcess.cpp
    M Source/WebKit/WebProcess/WebProcess.h

  Log Message:
  -----------
  [cocoa] Cache opt-in partitioned cookie enablement in Web Process and use it when creating cookie cache
https://bugs.webkit.org/show_bug.cgi?id=286016
rdar://142985374

Reviewed by Alex Christensen.

On some platforms where the WebCookieCache is supported, the cache can be
destroyed at any time, such as when the process is suspended. We need to
remember if opt-in cookie partitioning was enabled so we can enable it in the
cache when that is recreated. This patch caches the state in the WebProcess and
uses the singleton when instantiating a new in-memory cache on Cocoa platforms.

* Source/WebKit/WebProcess/WebPage/Cocoa/WebCookieCacheCocoa.mm:
(WebKit::WebCookieCache::inMemoryStorageSession):
* Source/WebKit/WebProcess/WebProcess.cpp:
(WebKit::WebProcess::setOptInCookiePartitioningEnabled):
* Source/WebKit/WebProcess/WebProcess.h:

Canonical link: https://commits.webkit.org/288981@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