Changeset 254601 in webkit
- Timestamp:
- Jan 15, 2020, 11:15:19 AM (7 years ago)
- Location:
- branches/safari-609-branch/Source
- Files:
-
- 9 edited
-
WebCore/ChangeLog (modified) (1 diff)
-
WebCore/page/Settings.yaml (modified) (1 diff)
-
WebKit/ChangeLog (modified) (1 diff)
-
WebKit/NetworkProcess/Classifier/ResourceLoadStatisticsStore.h (modified) (1 diff)
-
WebKit/NetworkProcess/NetworkSession.h (modified) (1 diff)
-
WebKit/NetworkProcess/NetworkSessionCreationParameters.h (modified) (1 diff)
-
WebKit/Shared/WebPreferences.yaml (modified) (1 diff)
-
WebKit/UIProcess/WebProcessPool.cpp (modified) (1 diff)
-
WebKit/UIProcess/WebsiteData/Cocoa/WebsiteDataStoreCocoa.mm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-609-branch/Source/WebCore/ChangeLog
r254598 r254601 1 2020-01-14 Alan Coon <alancoon@apple.com> 2 3 Cherry-pick r254239. rdar://problem/58549100 4 5 Resource Load Statistics: Flip experimental cookie blocking setting from an enable to a disable 6 https://bugs.webkit.org/show_bug.cgi?id=205963 7 <rdar://problem/58424136> 8 9 Reviewed by Brent Fulgham. 10 11 To get default on behavior, experimental features in the network process need to be 12 turned from enable flags to disable flags. This patch does that for the experimental 13 cookie blocking flag. 14 15 Source/WebCore: 16 17 No new tests. This change just reverses the interpretation of a flag. 18 19 * page/Settings.yaml: 20 21 Source/WebKit: 22 23 This change also aligns the init values of the setting to match the default. 24 25 * NetworkProcess/Classifier/ResourceLoadStatisticsStore.h: 26 * NetworkProcess/NetworkSession.h: 27 * NetworkProcess/NetworkSessionCreationParameters.h: 28 * Shared/WebPreferences.yaml: 29 * UIProcess/WebProcessPool.cpp: 30 (WebKit::WebProcessPool::ensureNetworkProcess): 31 * UIProcess/WebsiteData/Cocoa/WebsiteDataStoreCocoa.mm: 32 (WebKit::WebsiteDataStore::parameters): 33 34 35 git-svn-id: https://svn.webkit.org/repository/webkit/trunk@254239 268f45cc-cd09-0410-ab3c-d52691b4dbfc 36 37 2020-01-08 John Wilander <wilander@apple.com> 38 39 Resource Load Statistics: Flip experimental cookie blocking setting from an enable to a disable 40 https://bugs.webkit.org/show_bug.cgi?id=205963 41 <rdar://problem/58424136> 42 43 Reviewed by Brent Fulgham. 44 45 To get default on behavior, experimental features in the network process need to be 46 turned from enable flags to disable flags. This patch does that for the experimental 47 cookie blocking flag. 48 49 No new tests. This change just reverses the interpretation of a flag. 50 51 * page/Settings.yaml: 52 1 53 2020-01-14 Alan Coon <alancoon@apple.com> 2 54 -
branches/safari-609-branch/Source/WebCore/page/Settings.yaml
r253898 r254601 887 887 inspectorOverride: true 888 888 889 isThirdPartyCookieBlocking Enabled:890 initial: true889 isThirdPartyCookieBlockingDisabled: 890 initial: false 891 891 892 892 isFirstPartyWebsiteDataRemovalEnabled: -
branches/safari-609-branch/Source/WebKit/ChangeLog
r254599 r254601 1 2020-01-14 Alan Coon <alancoon@apple.com> 2 3 Cherry-pick r254239. rdar://problem/58549100 4 5 Resource Load Statistics: Flip experimental cookie blocking setting from an enable to a disable 6 https://bugs.webkit.org/show_bug.cgi?id=205963 7 <rdar://problem/58424136> 8 9 Reviewed by Brent Fulgham. 10 11 To get default on behavior, experimental features in the network process need to be 12 turned from enable flags to disable flags. This patch does that for the experimental 13 cookie blocking flag. 14 15 Source/WebCore: 16 17 No new tests. This change just reverses the interpretation of a flag. 18 19 * page/Settings.yaml: 20 21 Source/WebKit: 22 23 This change also aligns the init values of the setting to match the default. 24 25 * NetworkProcess/Classifier/ResourceLoadStatisticsStore.h: 26 * NetworkProcess/NetworkSession.h: 27 * NetworkProcess/NetworkSessionCreationParameters.h: 28 * Shared/WebPreferences.yaml: 29 * UIProcess/WebProcessPool.cpp: 30 (WebKit::WebProcessPool::ensureNetworkProcess): 31 * UIProcess/WebsiteData/Cocoa/WebsiteDataStoreCocoa.mm: 32 (WebKit::WebsiteDataStore::parameters): 33 34 35 git-svn-id: https://svn.webkit.org/repository/webkit/trunk@254239 268f45cc-cd09-0410-ab3c-d52691b4dbfc 36 37 2020-01-08 John Wilander <wilander@apple.com> 38 39 Resource Load Statistics: Flip experimental cookie blocking setting from an enable to a disable 40 https://bugs.webkit.org/show_bug.cgi?id=205963 41 <rdar://problem/58424136> 42 43 Reviewed by Brent Fulgham. 44 45 To get default on behavior, experimental features in the network process need to be 46 turned from enable flags to disable flags. This patch does that for the experimental 47 cookie blocking flag. 48 49 This change also aligns the init values of the setting to match the default. 50 51 * NetworkProcess/Classifier/ResourceLoadStatisticsStore.h: 52 * NetworkProcess/NetworkSession.h: 53 * NetworkProcess/NetworkSessionCreationParameters.h: 54 * Shared/WebPreferences.yaml: 55 * UIProcess/WebProcessPool.cpp: 56 (WebKit::WebProcessPool::ensureNetworkProcess): 57 * UIProcess/WebsiteData/Cocoa/WebsiteDataStoreCocoa.mm: 58 (WebKit::WebsiteDataStore::parameters): 59 1 60 2020-01-14 Alan Coon <alancoon@apple.com> 2 61 -
branches/safari-609-branch/Source/WebKit/NetworkProcess/Classifier/ResourceLoadStatisticsStore.h
r253484 r254601 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 }; -
branches/safari-609-branch/Source/WebKit/NetworkProcess/NetworkSession.h
r253277 r254601 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 -
branches/safari-609-branch/Source/WebKit/NetworkProcess/NetworkSessionCreationParameters.h
r253277 r254601 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 }; -
branches/safari-609-branch/Source/WebKit/Shared/WebPreferences.yaml
r253925 r254601 1823 1823 category: experimental 1824 1824 1825 IsThirdPartyCookieBlocking Enabled:1826 type: bool 1827 defaultValue: true1828 humanReadableName: " Block All 3rd-Party Cookies(ITP)"1829 humanReadableDescription: " Block all third-party cookieswhen Intelligent Tracking Prevention is enabled"1825 IsThirdPartyCookieBlockingDisabled: 1826 type: bool 1827 defaultValue: false 1828 humanReadableName: "Disable Full 3rd-Party Cookie Blocking (ITP)" 1829 humanReadableDescription: "Disable full third-party cookie blocking when Intelligent Tracking Prevention is enabled" 1830 1830 category: experimental 1831 1831 -
branches/safari-609-branch/Source/WebKit/UIProcess/WebProcessPool.cpp
r254474 r254601 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 { }; -
branches/safari-609-branch/Source/WebKit/UIProcess/WebsiteData/Cocoa/WebsiteDataStoreCocoa.mm
r253834 r254601 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.