[webkit-changes] [WebKit/WebKit] bf6f72: Track opt-in cookie partitioning state in WebCooki...

Commit Queue noreply at github.com
Thu Jan 23 12:03:18 PST 2025


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

  Changed paths:
    M Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.cpp
    M Source/WebKit/WebProcess/WebPage/Cocoa/WebCookieCacheCocoa.mm
    M Source/WebKit/WebProcess/WebPage/WebCookieCache.h
    M Source/WebKit/WebProcess/WebProcess.cpp
    M Source/WebKit/WebProcess/WebProcess.h

  Log Message:
  -----------
  Track opt-in cookie partitioning state in WebCookieCache instead of WebProcess
https://bugs.webkit.org/show_bug.cgi?id=286316
rdar://143052569

Reviewed by Alex Christensen.

This is a bit of clean up and improvement for how the opt-in cookie
partitioniong state is tracked. This patch moves the state from the WebProcess
into the WebCookieCache. If the cache does not currently exist, then we simply
save it but we don't instatiate the cache.

This patch also fixes a small format string bug in a log entry.

* Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.cpp:
(WebKit::WebsiteDataStore::propagateSettingUpdates):
* Source/WebKit/WebProcess/WebPage/Cocoa/WebCookieCacheCocoa.mm:
(WebKit::WebCookieCache::inMemoryStorageSession):
(WebKit::WebCookieCache::setOptInCookiePartitioningEnabled):
* Source/WebKit/WebProcess/WebPage/WebCookieCache.h:
* Source/WebKit/WebProcess/WebProcess.cpp:
(WebKit::WebProcess::setWebsiteDataStoreParameters):
(WebKit::WebProcess::setOptInCookiePartitioningEnabled):
* Source/WebKit/WebProcess/WebProcess.h:

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