Changeset 254239 in webkit
- Timestamp:
- Jan 8, 2020 5:21:01 PM (4 years ago)
- Location:
- trunk/Source
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r254232 r254239 1 2020-01-08 John Wilander <wilander@apple.com> 2 3 Resource Load Statistics: Flip experimental cookie blocking setting from an enable to a disable 4 https://bugs.webkit.org/show_bug.cgi?id=205963 5 <rdar://problem/58424136> 6 7 Reviewed by Brent Fulgham. 8 9 To get default on behavior, experimental features in the network process need to be 10 turned from enable flags to disable flags. This patch does that for the experimental 11 cookie blocking flag. 12 13 No new tests. This change just reverses the interpretation of a flag. 14 15 * page/Settings.yaml: 16 1 17 2020-01-08 Devin Rousso <drousso@apple.com> 2 18 -
trunk/Source/WebCore/page/Settings.yaml
r254115 r254239 887 887 inspectorOverride: true 888 888 889 isThirdPartyCookieBlocking Enabled:890 initial: true889 isThirdPartyCookieBlockingDisabled: 890 initial: false 891 891 892 892 isFirstPartyWebsiteDataRemovalEnabled: -
trunk/Source/WebKit/ChangeLog
r254237 r254239 1 2020-01-08 John Wilander <wilander@apple.com> 2 3 Resource Load Statistics: Flip experimental cookie blocking setting from an enable to a disable 4 https://bugs.webkit.org/show_bug.cgi?id=205963 5 <rdar://problem/58424136> 6 7 Reviewed by Brent Fulgham. 8 9 To get default on behavior, experimental features in the network process need to be 10 turned from enable flags to disable flags. This patch does that for the experimental 11 cookie blocking flag. 12 13 This change also aligns the init values of the setting to match the default. 14 15 * NetworkProcess/Classifier/ResourceLoadStatisticsStore.h: 16 * NetworkProcess/NetworkSession.h: 17 * NetworkProcess/NetworkSessionCreationParameters.h: 18 * Shared/WebPreferences.yaml: 19 * UIProcess/WebProcessPool.cpp: 20 (WebKit::WebProcessPool::ensureNetworkProcess): 21 * UIProcess/WebsiteData/Cocoa/WebsiteDataStoreCocoa.mm: 22 (WebKit::WebsiteDataStore::parameters): 23 1 24 2020-01-08 Brent Fulgham <bfulgham@apple.com> 2 25 -
trunk/Source/WebKit/NetworkProcess/Classifier/ResourceLoadStatisticsStore.h
r253484 r254239 275 275 bool m_debugLoggingEnabled { false }; 276 276 bool m_debugModeEnabled { false }; 277 WebCore::ThirdPartyCookieBlockingMode m_thirdPartyCookieBlockingMode { WebCore::ThirdPartyCookieBlockingMode::All OnSitesWithoutUserInteraction};277 WebCore::ThirdPartyCookieBlockingMode m_thirdPartyCookieBlockingMode { WebCore::ThirdPartyCookieBlockingMode::All }; 278 278 bool m_dataRecordsBeingRemoved { false }; 279 279 ShouldIncludeLocalhost m_shouldIncludeLocalhost { ShouldIncludeLocalhost::Yes }; -
trunk/Source/WebKit/NetworkProcess/NetworkSession.h
r254087 r254239 154 154 bool m_enableResourceLoadStatisticsLogTestingEvent; 155 155 bool m_downgradeReferrer { true }; 156 WebCore::ThirdPartyCookieBlockingMode m_thirdPartyCookieBlockingMode { WebCore::ThirdPartyCookieBlockingMode::All OnSitesWithoutUserInteraction};156 WebCore::ThirdPartyCookieBlockingMode m_thirdPartyCookieBlockingMode { WebCore::ThirdPartyCookieBlockingMode::All }; 157 157 WebCore::FirstPartyWebsiteDataRemovalMode m_firstPartyWebsiteDataRemovalMode { WebCore::FirstPartyWebsiteDataRemovalMode::None }; 158 158 #endif -
trunk/Source/WebKit/NetworkProcess/NetworkSessionCreationParameters.h
r253277 r254239 87 87 bool shouldIncludeLocalhostInResourceLoadStatistics { true }; 88 88 bool enableResourceLoadStatisticsDebugMode { false }; 89 WebCore::ThirdPartyCookieBlockingMode thirdPartyCookieBlockingMode { WebCore::ThirdPartyCookieBlockingMode::All OnSitesWithoutUserInteraction};89 WebCore::ThirdPartyCookieBlockingMode thirdPartyCookieBlockingMode { WebCore::ThirdPartyCookieBlockingMode::All }; 90 90 WebCore::FirstPartyWebsiteDataRemovalMode firstPartyWebsiteDataRemovalMode { WebCore::FirstPartyWebsiteDataRemovalMode::None }; 91 91 bool deviceManagementRestrictionsEnabled { false }; -
trunk/Source/WebKit/Shared/WebPreferences.yaml
r254130 r254239 1832 1832 category: experimental 1833 1833 1834 IsThirdPartyCookieBlocking Enabled:1835 type: bool 1836 defaultValue: true1837 humanReadableName: " Block All 3rd-Party Cookies(ITP)"1838 humanReadableDescription: " Block all third-party cookieswhen Intelligent Tracking Prevention is enabled"1834 IsThirdPartyCookieBlockingDisabled: 1835 type: bool 1836 defaultValue: false 1837 humanReadableName: "Disable Full 3rd-Party Cookie Blocking (ITP)" 1838 humanReadableDescription: "Disable full third-party cookie blocking when Intelligent Tracking Prevention is enabled" 1839 1839 category: experimental 1840 1840 -
trunk/Source/WebKit/UIProcess/WebProcessPool.cpp
r254130 r254239 577 577 bool shouldIncludeLocalhost = true; 578 578 bool enableResourceLoadStatisticsDebugMode = false; 579 WebCore::ThirdPartyCookieBlockingMode thirdPartyCookieBlockingMode = WebCore::ThirdPartyCookieBlockingMode::All OnSitesWithoutUserInteraction;579 WebCore::ThirdPartyCookieBlockingMode thirdPartyCookieBlockingMode = WebCore::ThirdPartyCookieBlockingMode::All; 580 580 WebCore::FirstPartyWebsiteDataRemovalMode firstPartyWebsiteDataRemovalMode = WebCore::FirstPartyWebsiteDataRemovalMode::None; 581 581 WebCore::RegistrableDomain manualPrevalentResource { }; -
trunk/Source/WebKit/UIProcess/WebsiteData/Cocoa/WebsiteDataStoreCocoa.mm
r253834 r254239 73 73 bool shouldLogCookieInformation = false; 74 74 bool enableResourceLoadStatisticsDebugMode = false; 75 auto thirdPartyCookieBlockingMode = WebCore::ThirdPartyCookieBlockingMode:: OnlyAccordingToPerDomainPolicy;75 auto thirdPartyCookieBlockingMode = WebCore::ThirdPartyCookieBlockingMode::All; 76 76 auto firstPartyWebsiteDataRemovalMode = WebCore::FirstPartyWebsiteDataRemovalMode::None; 77 77 bool enableLegacyTLS = false; … … 88 88 #if ENABLE(RESOURCE_LOAD_STATISTICS) 89 89 enableResourceLoadStatisticsDebugMode = [defaults boolForKey:@"ITPDebugMode"]; 90 if ([defaults boolForKey:[NSString stringWithFormat:@"Experimental%@", WebPreferencesKey::isThirdPartyCookieBlockingEnabledKey().createCFString().get()]]) 90 if ([defaults boolForKey:[NSString stringWithFormat:@"Experimental%@", WebPreferencesKey::isThirdPartyCookieBlockingDisabledKey().createCFString().get()]]) 91 thirdPartyCookieBlockingMode = WebCore::ThirdPartyCookieBlockingMode::AllOnSitesWithoutUserInteraction; 92 else 91 93 thirdPartyCookieBlockingMode = WebCore::ThirdPartyCookieBlockingMode::All; 92 else93 thirdPartyCookieBlockingMode = WebCore::ThirdPartyCookieBlockingMode::AllOnSitesWithoutUserInteraction;94 94 if ([defaults boolForKey:[NSString stringWithFormat:@"Experimental%@", WebPreferencesKey::isFirstPartyWebsiteDataRemovalEnabledKey().createCFString().get()]]) { 95 95 if ([defaults boolForKey:[NSString stringWithFormat:@"InternalDebug%@", WebPreferencesKey::isFirstPartyWebsiteDataRemovalReproTestingEnabledKey().createCFString().get()]])
Note: See TracChangeset
for help on using the changeset viewer.