Make ServiceWorkers follow the DEFAULT_EXPERIMENTAL_FEATURES_ENABLED flag on Mac.
authorbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 12 Dec 2017 18:48:13 +0000 (18:48 +0000)
committerbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 12 Dec 2017 18:48:13 +0000 (18:48 +0000)
<rdar://problem/35978311> and https://bugs.webkit.org/show_bug.cgi?id=180697

Reviewed by Chris Dumez.

* Shared/WebPreferences.yaml:
* Shared/WebPreferencesDefaultValues.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@225789 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/ChangeLog
Source/WebKit/Shared/WebPreferences.yaml
Source/WebKit/Shared/WebPreferencesDefaultValues.h

index 2cf09d3..f308d60 100644 (file)
@@ -1,3 +1,13 @@
+2017-12-12  Brady Eidson  <beidson@apple.com>
+
+        Make ServiceWorkers follow the DEFAULT_EXPERIMENTAL_FEATURES_ENABLED flag on Mac.
+        <rdar://problem/35978311> and https://bugs.webkit.org/show_bug.cgi?id=180697
+
+        Reviewed by Chris Dumez.
+
+        * Shared/WebPreferences.yaml:
+        * Shared/WebPreferencesDefaultValues.h:
+
 2017-12-12  Chris Dumez  <cdumez@apple.com>
 
         Simplify IPC code between WebProcess and StorageProcess for serviceWorker.postMessage()
index b4e78ed..1f4b9d9 100644 (file)
@@ -1112,7 +1112,7 @@ IsSecureContextAttributeEnabled:
 
 ServiceWorkersEnabled:
   type: bool
-  defaultValue: false
+  defaultValue: DEFAULT_SERVICE_WORKERS_ENABLED
   humanReadableName: "ServiceWorkers"
   humanReadableDescription: "Enable ServiceWorkers"
   category: experimental
index 47bffb6..103cd56 100644 (file)
 #else
 #define DEFAULT_EXPERIMENTAL_FEATURES_ENABLED false
 #endif
+
+#if ENABLE(EXPERIMENTAL_FEATURES) || PLATFORM(MAC)
+#define DEFAULT_SERVICE_WORKERS_ENABLED true
+#else
+#define DEFAULT_SERVICE_WORKERS_ENABLED false
+#endif