Title: [217996] trunk/Source/WebKit2
Revision
217996
Author
[email protected]
Date
2017-06-09 10:48:05 -0700 (Fri, 09 Jun 2017)

Log Message

Add SubresourceIntegrity as an experimental feature
https://bugs.webkit.org/show_bug.cgi?id=173164

Patch by Sam Weinig <[email protected]> on 2017-06-09
Reviewed by Darin Adler.

* Shared/WebPreferencesDefinitions.h:
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::updatePreferences):
Add SubresourceIntegrity to the list of experimental features. Also, sort the experimental features
as requested by the comment above it.

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (217995 => 217996)


--- trunk/Source/WebKit2/ChangeLog	2017-06-09 17:44:30 UTC (rev 217995)
+++ trunk/Source/WebKit2/ChangeLog	2017-06-09 17:48:05 UTC (rev 217996)
@@ -1,3 +1,16 @@
+2017-06-09  Sam Weinig  <[email protected]>
+
+        Add SubresourceIntegrity as an experimental feature
+        https://bugs.webkit.org/show_bug.cgi?id=173164
+
+        Reviewed by Darin Adler.
+
+        * Shared/WebPreferencesDefinitions.h:
+        * WebProcess/WebPage/WebPage.cpp:
+        (WebKit::WebPage::updatePreferences):
+        Add SubresourceIntegrity to the list of experimental features. Also, sort the experimental features
+        as requested by the comment above it.
+
 2017-06-09  Chris Dumez  <[email protected]>
 
         Make sure |this| is protected in lambda capture in WebResourceLoadStatisticsStore::grandfatherExistingWebsiteData()

Modified: trunk/Source/WebKit2/Shared/WebPreferencesDefinitions.h (217995 => 217996)


--- trunk/Source/WebKit2/Shared/WebPreferencesDefinitions.h	2017-06-09 17:44:30 UTC (rev 217995)
+++ trunk/Source/WebKit2/Shared/WebPreferencesDefinitions.h	2017-06-09 17:48:05 UTC (rev 217996)
@@ -353,15 +353,16 @@
 
 #define FOR_EACH_WEBKIT_EXPERIMENTAL_FEATURE_PREFERENCE(macro) \
     macro(ConstantPropertiesEnabled, constantPropertiesEnabled, Bool, bool, DEFAULT_EXPERIMENTAL_FEATURES_ENABLED, "Constant Properties", "Enable CSS constant() properties") \
+    macro(DisplayContentsEnabled, displayContentsEnabled, Bool, bool, false, "CSS display: contents", "Enable CSS display: contents support") \
     macro(SpringTimingFunctionEnabled, springTimingFunctionEnabled, Bool, bool, DEFAULT_EXPERIMENTAL_FEATURES_ENABLED, "CSS Spring Animations", "CSS Spring Animation prototype") \
     macro(LinkPreloadEnabled, linkPreloadEnabled, Bool, bool, DEFAULT_EXPERIMENTAL_FEATURES_ENABLED, "Link Preload", "Link preload support") \
+    macro(WebRTCLegacyAPIDisabled, webRTCLegacyAPIDisabled, Bool, bool, false, "Remove Legacy WebRTC API", "Remove Legacy WebRTC API") \
+    macro(SubresourceIntegrityEnabled, subresourceIntegrityEnabled, Bool, bool, DEFAULT_EXPERIMENTAL_FEATURES_ENABLED, "SubresourceIntegrity", "Enable SubresourceIntegrity") \
     macro(SubtleCryptoEnabled, subtleCryptoEnabled, Bool, bool, DEFAULT_EXPERIMENTAL_FEATURES_ENABLED, "SubtleCrypto", "Enable SubtleCrypto support") \
     macro(ViewportFitEnabled, viewportFitEnabled, Bool, bool, DEFAULT_EXPERIMENTAL_FEATURES_ENABLED, "Viewport Fit", "Enable viewport-fit viewport parameter") \
     macro(WebAnimationsEnabled, webAnimationsEnabled, Bool, bool, false, "Web Animations", "Web Animations prototype") \
     macro(WebGL2Enabled, webGL2Enabled, Bool, bool, false, "WebGL 2.0", "WebGL 2 prototype") \
     macro(WebGPUEnabled, webGPUEnabled, Bool, bool, false, "WebGPU", "WebGPU prototype") \
-    macro(DisplayContentsEnabled, displayContentsEnabled, Bool, bool, false, "display: contents", "Enable CSS display: contents support") \
-    macro(WebRTCLegacyAPIDisabled, webRTCLegacyAPIDisabled, Bool, bool, false, "Remove Legacy WebRTC API", "Remove Legacy WebRTC API") \
     \
 
 #if PLATFORM(COCOA)

Modified: trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp (217995 => 217996)


--- trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp	2017-06-09 17:44:30 UTC (rev 217995)
+++ trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp	2017-06-09 17:48:05 UTC (rev 217996)
@@ -3375,6 +3375,8 @@
     RuntimeEnabledFeatures::sharedFeatures().setSubtleCryptoEnabled(store.getBoolValueForKey(WebPreferencesKey::subtleCryptoEnabledKey()));
 #endif
 
+    settings.setSubresourceIntegrityEnabled(store.getBoolValueForKey(WebPreferencesKey::subresourceIntegrityEnabledKey()));
+
     platformPreferencesDidChange(store);
 
     if (m_drawingArea)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to