-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add SPI for setting default value of TrackingPreventionEnabled flag o…
…n _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
- Loading branch information
Showing
4 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters