Diff
Modified: trunk/Source/WebCore/ChangeLog (246762 => 246763)
--- trunk/Source/WebCore/ChangeLog 2019-06-24 20:16:44 UTC (rev 246762)
+++ trunk/Source/WebCore/ChangeLog 2019-06-24 21:37:26 UTC (rev 246763)
@@ -1,3 +1,21 @@
+2019-06-24 John Wilander <[email protected]>
+
+ Remove IsITPFirstPartyWebsiteDataRemovalEnabled as runtime check
+ https://bugs.webkit.org/show_bug.cgi?id=199164
+ <rdar://problem/52061147>
+
+ Reviewed by Brent Fulgham.
+
+ No new tests. Just a removal of a runtime feature check. The functionality
+ already has a layout test.
+
+ We've had this toggle as a safety thing since mid-March. No need for it any longer.
+
+ * page/RuntimeEnabledFeatures.h:
+ (WebCore::RuntimeEnabledFeatures::isITPDatabaseEnabled const):
+ (WebCore::RuntimeEnabledFeatures::setIsITPFirstPartyWebsiteDataRemovalEnabled): Deleted.
+ (WebCore::RuntimeEnabledFeatures::isITPFirstPartyWebsiteDataRemovalEnabled const): Deleted.
+
2019-06-24 Jer Noble <[email protected]>
iOS 12.2 Drawing portrait video to canvas is sideways
Modified: trunk/Source/WebCore/page/RuntimeEnabledFeatures.h (246762 => 246763)
--- trunk/Source/WebCore/page/RuntimeEnabledFeatures.h 2019-06-24 20:16:44 UTC (rev 246762)
+++ trunk/Source/WebCore/page/RuntimeEnabledFeatures.h 2019-06-24 21:37:26 UTC (rev 246763)
@@ -151,9 +151,6 @@
void setIsITPDatabaseEnabled(bool isEnabled) { m_isITPDatabaseEnabled = isEnabled; }
bool isITPDatabaseEnabled() const { return m_isITPDatabaseEnabled; }
-
- void setIsITPFirstPartyWebsiteDataRemovalEnabled(bool isEnabled) { m_isITPFirstPartyWebsiteDataRemovalEnabled = isEnabled; }
- bool isITPFirstPartyWebsiteDataRemovalEnabled() const { return m_isITPFirstPartyWebsiteDataRemovalEnabled; }
void setRestrictedHTTPResponseAccess(bool isEnabled) { m_isRestrictedHTTPResponseAccess = isEnabled; }
bool restrictedHTTPResponseAccess() const { return m_isRestrictedHTTPResponseAccess; }
@@ -553,7 +550,6 @@
#endif
bool m_isITPDatabaseEnabled { false };
- bool m_isITPFirstPartyWebsiteDataRemovalEnabled { false };
bool m_referrerPolicyAttributeEnabled { false };
bool m_interruptAudioOnPageVisibilityChangeEnabled { false };
Modified: trunk/Source/WebKit/ChangeLog (246762 => 246763)
--- trunk/Source/WebKit/ChangeLog 2019-06-24 20:16:44 UTC (rev 246762)
+++ trunk/Source/WebKit/ChangeLog 2019-06-24 21:37:26 UTC (rev 246763)
@@ -1,3 +1,25 @@
+2019-06-24 John Wilander <[email protected]>
+
+ Remove IsITPFirstPartyWebsiteDataRemovalEnabled as runtime check
+ https://bugs.webkit.org/show_bug.cgi?id=199164
+ <rdar://problem/52061147>
+
+ Reviewed by Brent Fulgham.
+
+ We've had this toggle as a safety thing since mid-March. No need for it any longer.
+
+ * NetworkProcess/Classifier/ResourceLoadStatisticsMemoryStore.cpp:
+ (WebKit::ResourceLoadStatisticsMemoryStore::shouldRemoveAllButCookiesFor const):
+ * NetworkProcess/NetworkProcess.cpp:
+ (WebKit::NetworkProcess::initializeNetworkProcess):
+ * NetworkProcess/NetworkProcessCreationParameters.cpp:
+ (WebKit::NetworkProcessCreationParameters::encode const):
+ (WebKit::NetworkProcessCreationParameters::decode):
+ * NetworkProcess/NetworkProcessCreationParameters.h:
+ * Shared/WebPreferences.yaml:
+ * UIProcess/Cocoa/WebProcessPoolCocoa.mm:
+ (WebKit::WebProcessPool::platformInitializeNetworkProcess):
+
2019-06-24 Daniel Bates <[email protected]>
m_focusedElement != &element in WebPage::elementDidBlur() sometimes
Modified: trunk/Source/WebKit/NetworkProcess/Classifier/ResourceLoadStatisticsMemoryStore.cpp (246762 => 246763)
--- trunk/Source/WebKit/NetworkProcess/Classifier/ResourceLoadStatisticsMemoryStore.cpp 2019-06-24 20:16:44 UTC (rev 246762)
+++ trunk/Source/WebKit/NetworkProcess/Classifier/ResourceLoadStatisticsMemoryStore.cpp 2019-06-24 21:37:26 UTC (rev 246763)
@@ -41,7 +41,6 @@
#include <WebCore/KeyedCoding.h>
#include <WebCore/NetworkStorageSession.h>
#include <WebCore/ResourceLoadStatistics.h>
-#include <WebCore/RuntimeEnabledFeatures.h>
#include <WebCore/UserGestureIndicator.h>
#include <wtf/CallbackAggregator.h>
#include <wtf/DateMath.h>
@@ -797,7 +796,7 @@
bool ResourceLoadStatisticsMemoryStore::shouldRemoveAllButCookiesFor(ResourceLoadStatistics& resourceStatistic, bool shouldCheckForGrandfathering) const
{
- return RuntimeEnabledFeatures::sharedFeatures().isITPFirstPartyWebsiteDataRemovalEnabled() && resourceStatistic.gotLinkDecorationFromPrevalentResource && !hasHadUnexpiredRecentUserInteraction(resourceStatistic, OperatingDatesWindow::Short) && (!shouldCheckForGrandfathering || !resourceStatistic.grandfathered);
+ return resourceStatistic.gotLinkDecorationFromPrevalentResource && !hasHadUnexpiredRecentUserInteraction(resourceStatistic, OperatingDatesWindow::Short) && (!shouldCheckForGrandfathering || !resourceStatistic.grandfathered);
}
HashMap<RegistrableDomain, WebsiteDataToRemove> ResourceLoadStatisticsMemoryStore::registrableDomainsToRemoveWebsiteDataFor()
Modified: trunk/Source/WebKit/NetworkProcess/NetworkProcess.cpp (246762 => 246763)
--- trunk/Source/WebKit/NetworkProcess/NetworkProcess.cpp 2019-06-24 20:16:44 UTC (rev 246762)
+++ trunk/Source/WebKit/NetworkProcess/NetworkProcess.cpp 2019-06-24 21:37:26 UTC (rev 246763)
@@ -309,7 +309,6 @@
switchToNewTestingSession();
WebCore::RuntimeEnabledFeatures::sharedFeatures().setIsITPDatabaseEnabled(parameters.shouldEnableITPDatabase);
- WebCore::RuntimeEnabledFeatures::sharedFeatures().setIsITPFirstPartyWebsiteDataRemovalEnabled(parameters.isITPFirstPartyWebsiteDataRemovalEnabled);
WebCore::RuntimeEnabledFeatures::sharedFeatures().setAdClickAttributionDebugModeEnabled(parameters.enableAdClickAttributionDebugMode);
Modified: trunk/Source/WebKit/NetworkProcess/NetworkProcessCreationParameters.cpp (246762 => 246763)
--- trunk/Source/WebKit/NetworkProcess/NetworkProcessCreationParameters.cpp 2019-06-24 20:16:44 UTC (rev 246762)
+++ trunk/Source/WebKit/NetworkProcess/NetworkProcessCreationParameters.cpp 2019-06-24 21:37:26 UTC (rev 246763)
@@ -90,7 +90,6 @@
#endif
encoder << shouldEnableITPDatabase;
encoder << downloadMonitorSpeedMultiplier;
- encoder << isITPFirstPartyWebsiteDataRemovalEnabled;
encoder << enableAdClickAttributionDebugMode;
encoder << hstsStorageDirectory;
encoder << hstsStorageDirectoryExtensionHandle;
@@ -220,9 +219,6 @@
return false;
result.downloadMonitorSpeedMultiplier = *downloadMonitorSpeedMultiplier;
- if (!decoder.decode(result.isITPFirstPartyWebsiteDataRemovalEnabled))
- return false;
-
if (!decoder.decode(result.enableAdClickAttributionDebugMode))
return false;
Modified: trunk/Source/WebKit/NetworkProcess/NetworkProcessCreationParameters.h (246762 => 246763)
--- trunk/Source/WebKit/NetworkProcess/NetworkProcessCreationParameters.h 2019-06-24 20:16:44 UTC (rev 246762)
+++ trunk/Source/WebKit/NetworkProcess/NetworkProcessCreationParameters.h 2019-06-24 21:37:26 UTC (rev 246763)
@@ -107,7 +107,6 @@
bool shouldDisableServiceWorkerProcessTerminationDelay { false };
#endif
bool shouldEnableITPDatabase { false };
- bool isITPFirstPartyWebsiteDataRemovalEnabled { true };
uint32_t downloadMonitorSpeedMultiplier { 1 };
bool enableAdClickAttributionDebugMode { false };
String hstsStorageDirectory;
Modified: trunk/Source/WebKit/Shared/WebPreferences.yaml (246762 => 246763)
--- trunk/Source/WebKit/Shared/WebPreferences.yaml 2019-06-24 20:16:44 UTC (rev 246762)
+++ trunk/Source/WebKit/Shared/WebPreferences.yaml 2019-06-24 21:37:26 UTC (rev 246763)
@@ -1393,14 +1393,6 @@
humanReadableDescription: "Media Capabilities Extensions"
category: experimental
-IsITPFirstPartyWebsiteDataRemovalEnabled:
- type: bool
- defaultValue: true
- humanReadableName: "ITP First Party Website Data Removal"
- humanReadableDescription: "Enable Intelligent Tracking Prevention First Party Website Data Removal"
- webcoreBinding: RuntimeEnabledFeatures
- category: experimental
-
ResizeObserverEnabled:
type: bool
defaultValue: false
Modified: trunk/Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm (246762 => 246763)
--- trunk/Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm 2019-06-24 20:16:44 UTC (rev 246762)
+++ trunk/Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm 2019-06-24 21:37:26 UTC (rev 246763)
@@ -299,12 +299,6 @@
parameters.shouldEnableITPDatabase = [defaults boolForKey:[NSString stringWithFormat:@"InternalDebug%@", WebPreferencesKey::isITPDatabaseEnabledKey().createCFString().get()]];
parameters.downloadMonitorSpeedMultiplier = m_configuration->downloadMonitorSpeedMultiplier();
- // Check if the feature has been turned off explicitly. This avoids interpreting
- // a non-existing default as a false value.
- auto isITPFirstPartyWebsiteDataRemovalEnabledStr = [defaults stringForKey:[NSString stringWithFormat:@"Experimental%@", WebPreferencesKey::isITPFirstPartyWebsiteDataRemovalEnabledKey().createCFString().get()]];
- if ([isITPFirstPartyWebsiteDataRemovalEnabledStr isEqual:@"0"])
- parameters.isITPFirstPartyWebsiteDataRemovalEnabled = false;
-
parameters.enableAdClickAttributionDebugMode = [defaults boolForKey:[NSString stringWithFormat:@"Experimental%@", WebPreferencesKey::adClickAttributionDebugModeEnabledKey().createCFString().get()]];
}