[webkit-changes] [WebKit/WebKit] 048ee1: Add SPI for setting default value of TrackingPreve...

Sihui noreply at github.com
Wed Mar 6 12:27:10 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 048ee145e7ccd7397833ab11ab76ee74256bbc92
      https://github.com/WebKit/WebKit/commit/048ee145e7ccd7397833ab11ab76ee74256bbc92
  Author: Sihui Liu <sihui_liu at apple.com>
  Date:   2024-03-06 (Wed, 06 Mar 2024)

  Changed paths:
    M Source/WebKit/UIProcess/API/Cocoa/_WKWebsiteDataStoreConfiguration.h
    M Source/WebKit/UIProcess/API/Cocoa/_WKWebsiteDataStoreConfiguration.mm
    M Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.cpp
    M Source/WebKit/UIProcess/WebsiteData/WebsiteDataStoreConfiguration.h

  Log Message:
  -----------
  Add SPI for setting default value of TrackingPreventionEnabled flag on _WKWebsiteDataStoreConfiguration
https://bugs.webkit.org/show_bug.cgi?id=270505
rdar://124053569

Reviewed by Chris Dumez.

In current implementation, when client does not explicitly set TrackingPreventionEnabled flag on WebsiteDataStore, we
will use the default value, which is the TCC permission value. For clients that do not want to use the TCC permission
value by chance, add a new SPI for setting the default value at data store creation time.

* Source/WebKit/UIProcess/API/Cocoa/_WKWebsiteDataStoreConfiguration.h:
* Source/WebKit/UIProcess/API/Cocoa/_WKWebsiteDataStoreConfiguration.mm:
(-[_WKWebsiteDataStoreConfiguration defaultTrackingPreventionEnabledOverride]):
(-[_WKWebsiteDataStoreConfiguration setDefaultTrackingPreventionEnabledOverride:]):
* Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.cpp:
(WebKit::WebsiteDataStore::defaultTrackingPreventionEnabled const):
* Source/WebKit/UIProcess/WebsiteData/WebsiteDataStoreConfiguration.h:
(WebKit::WebsiteDataStoreConfiguration::defaultTrackingPreventionEnabledOverride const):
(WebKit::WebsiteDataStoreConfiguration::setDefaultTrackingPreventionEnabledOverride):

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