Changeset 246763 in webkit
- Timestamp:
- Jun 24, 2019 2:37:26 PM (5 years ago)
- Location:
- trunk/Source
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r246759 r246763 1 2019-06-24 John Wilander <wilander@apple.com> 2 3 Remove IsITPFirstPartyWebsiteDataRemovalEnabled as runtime check 4 https://bugs.webkit.org/show_bug.cgi?id=199164 5 <rdar://problem/52061147> 6 7 Reviewed by Brent Fulgham. 8 9 No new tests. Just a removal of a runtime feature check. The functionality 10 already has a layout test. 11 12 We've had this toggle as a safety thing since mid-March. No need for it any longer. 13 14 * page/RuntimeEnabledFeatures.h: 15 (WebCore::RuntimeEnabledFeatures::isITPDatabaseEnabled const): 16 (WebCore::RuntimeEnabledFeatures::setIsITPFirstPartyWebsiteDataRemovalEnabled): Deleted. 17 (WebCore::RuntimeEnabledFeatures::isITPFirstPartyWebsiteDataRemovalEnabled const): Deleted. 18 1 19 2019-06-24 Jer Noble <jer.noble@apple.com> 2 20 -
trunk/Source/WebCore/page/RuntimeEnabledFeatures.h
r246596 r246763 152 152 void setIsITPDatabaseEnabled(bool isEnabled) { m_isITPDatabaseEnabled = isEnabled; } 153 153 bool isITPDatabaseEnabled() const { return m_isITPDatabaseEnabled; } 154 155 void setIsITPFirstPartyWebsiteDataRemovalEnabled(bool isEnabled) { m_isITPFirstPartyWebsiteDataRemovalEnabled = isEnabled; }156 bool isITPFirstPartyWebsiteDataRemovalEnabled() const { return m_isITPFirstPartyWebsiteDataRemovalEnabled; }157 154 158 155 void setRestrictedHTTPResponseAccess(bool isEnabled) { m_isRestrictedHTTPResponseAccess = isEnabled; } … … 554 551 555 552 bool m_isITPDatabaseEnabled { false }; 556 bool m_isITPFirstPartyWebsiteDataRemovalEnabled { false };557 553 558 554 bool m_referrerPolicyAttributeEnabled { false }; -
trunk/Source/WebKit/ChangeLog
r246757 r246763 1 2019-06-24 John Wilander <wilander@apple.com> 2 3 Remove IsITPFirstPartyWebsiteDataRemovalEnabled as runtime check 4 https://bugs.webkit.org/show_bug.cgi?id=199164 5 <rdar://problem/52061147> 6 7 Reviewed by Brent Fulgham. 8 9 We've had this toggle as a safety thing since mid-March. No need for it any longer. 10 11 * NetworkProcess/Classifier/ResourceLoadStatisticsMemoryStore.cpp: 12 (WebKit::ResourceLoadStatisticsMemoryStore::shouldRemoveAllButCookiesFor const): 13 * NetworkProcess/NetworkProcess.cpp: 14 (WebKit::NetworkProcess::initializeNetworkProcess): 15 * NetworkProcess/NetworkProcessCreationParameters.cpp: 16 (WebKit::NetworkProcessCreationParameters::encode const): 17 (WebKit::NetworkProcessCreationParameters::decode): 18 * NetworkProcess/NetworkProcessCreationParameters.h: 19 * Shared/WebPreferences.yaml: 20 * UIProcess/Cocoa/WebProcessPoolCocoa.mm: 21 (WebKit::WebProcessPool::platformInitializeNetworkProcess): 22 1 23 2019-06-24 Daniel Bates <dabates@apple.com> 2 24 -
trunk/Source/WebKit/NetworkProcess/Classifier/ResourceLoadStatisticsMemoryStore.cpp
r246561 r246763 42 42 #include <WebCore/NetworkStorageSession.h> 43 43 #include <WebCore/ResourceLoadStatistics.h> 44 #include <WebCore/RuntimeEnabledFeatures.h>45 44 #include <WebCore/UserGestureIndicator.h> 46 45 #include <wtf/CallbackAggregator.h> … … 798 797 bool ResourceLoadStatisticsMemoryStore::shouldRemoveAllButCookiesFor(ResourceLoadStatistics& resourceStatistic, bool shouldCheckForGrandfathering) const 799 798 { 800 return RuntimeEnabledFeatures::sharedFeatures().isITPFirstPartyWebsiteDataRemovalEnabled() &&resourceStatistic.gotLinkDecorationFromPrevalentResource && !hasHadUnexpiredRecentUserInteraction(resourceStatistic, OperatingDatesWindow::Short) && (!shouldCheckForGrandfathering || !resourceStatistic.grandfathered);799 return resourceStatistic.gotLinkDecorationFromPrevalentResource && !hasHadUnexpiredRecentUserInteraction(resourceStatistic, OperatingDatesWindow::Short) && (!shouldCheckForGrandfathering || !resourceStatistic.grandfathered); 801 800 } 802 801 -
trunk/Source/WebKit/NetworkProcess/NetworkProcess.cpp
r246569 r246763 310 310 311 311 WebCore::RuntimeEnabledFeatures::sharedFeatures().setIsITPDatabaseEnabled(parameters.shouldEnableITPDatabase); 312 WebCore::RuntimeEnabledFeatures::sharedFeatures().setIsITPFirstPartyWebsiteDataRemovalEnabled(parameters.isITPFirstPartyWebsiteDataRemovalEnabled);313 312 314 313 WebCore::RuntimeEnabledFeatures::sharedFeatures().setAdClickAttributionDebugModeEnabled(parameters.enableAdClickAttributionDebugMode); -
trunk/Source/WebKit/NetworkProcess/NetworkProcessCreationParameters.cpp
r245075 r246763 91 91 encoder << shouldEnableITPDatabase; 92 92 encoder << downloadMonitorSpeedMultiplier; 93 encoder << isITPFirstPartyWebsiteDataRemovalEnabled;94 93 encoder << enableAdClickAttributionDebugMode; 95 94 encoder << hstsStorageDirectory; … … 221 220 result.downloadMonitorSpeedMultiplier = *downloadMonitorSpeedMultiplier; 222 221 223 if (!decoder.decode(result.isITPFirstPartyWebsiteDataRemovalEnabled))224 return false;225 226 222 if (!decoder.decode(result.enableAdClickAttributionDebugMode)) 227 223 return false; -
trunk/Source/WebKit/NetworkProcess/NetworkProcessCreationParameters.h
r245075 r246763 108 108 #endif 109 109 bool shouldEnableITPDatabase { false }; 110 bool isITPFirstPartyWebsiteDataRemovalEnabled { true };111 110 uint32_t downloadMonitorSpeedMultiplier { 1 }; 112 111 bool enableAdClickAttributionDebugMode { false }; -
trunk/Source/WebKit/Shared/WebPreferences.yaml
r246444 r246763 1394 1394 category: experimental 1395 1395 1396 IsITPFirstPartyWebsiteDataRemovalEnabled:1397 type: bool1398 defaultValue: true1399 humanReadableName: "ITP First Party Website Data Removal"1400 humanReadableDescription: "Enable Intelligent Tracking Prevention First Party Website Data Removal"1401 webcoreBinding: RuntimeEnabledFeatures1402 category: experimental1403 1404 1396 ResizeObserverEnabled: 1405 1397 type: bool -
trunk/Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm
r244955 r246763 300 300 parameters.downloadMonitorSpeedMultiplier = m_configuration->downloadMonitorSpeedMultiplier(); 301 301 302 // Check if the feature has been turned off explicitly. This avoids interpreting303 // a non-existing default as a false value.304 auto isITPFirstPartyWebsiteDataRemovalEnabledStr = [defaults stringForKey:[NSString stringWithFormat:@"Experimental%@", WebPreferencesKey::isITPFirstPartyWebsiteDataRemovalEnabledKey().createCFString().get()]];305 if ([isITPFirstPartyWebsiteDataRemovalEnabledStr isEqual:@"0"])306 parameters.isITPFirstPartyWebsiteDataRemovalEnabled = false;307 308 302 parameters.enableAdClickAttributionDebugMode = [defaults boolForKey:[NSString stringWithFormat:@"Experimental%@", WebPreferencesKey::adClickAttributionDebugModeEnabledKey().createCFString().get()]]; 309 303 }
Note: See TracChangeset
for help on using the changeset viewer.