[WebAuthN] Make WebAuthN default on only on macOS
authorjiewen_tan@apple.com <jiewen_tan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 21 May 2019 19:03:57 +0000 (19:03 +0000)
committerjiewen_tan@apple.com <jiewen_tan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 21 May 2019 19:03:57 +0000 (19:03 +0000)
https://bugs.webkit.org/show_bug.cgi?id=198068
<rdar://problem/50971874>

Reviewed by Brent Fulgham.

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

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

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

index 4d32f25..3b804ba 100644 (file)
@@ -1,3 +1,14 @@
+2019-05-21  Jiewen Tan  <jiewen_tan@apple.com>
+
+        [WebAuthN] Make WebAuthN default on only on macOS
+        https://bugs.webkit.org/show_bug.cgi?id=198068
+        <rdar://problem/50971874>
+
+        Reviewed by Brent Fulgham.
+
+        * Shared/WebPreferences.yaml:
+        * Shared/WebPreferencesDefaultValues.h:
+
 2019-05-21  Pablo Saavedra  <psaavedra@igalia.com>
 
         Undefined reference platformCloseFrontendPageAndWindow() linking against libWPEWebKit-1.0.so after r245536
index b3dad07..e59efb8 100644 (file)
@@ -749,7 +749,7 @@ InputEventsEnabled:
 
 WebAuthenticationEnabled:
   type: bool
-  defaultValue: true
+  defaultValue: DEFAULT_WEB_AUTHENTICATION_ENABLED
   humanReadableName: "Web Authentication"
   humanReadableDescription: "Enable Web Authentication support"
   webcoreBinding: RuntimeEnabledFeatures
index 3643966..48e2eba 100644 (file)
@@ -272,3 +272,9 @@ bool defaultCustomPasteboardDataEnabled();
 #else
 #define DEFAULT_APPLE_PAY_ENABLED false
 #endif
+
+#if PLATFORM(MAC)
+#define DEFAULT_WEB_AUTHENTICATION_ENABLED true
+#else
+#define DEFAULT_WEB_AUTHENTICATION_ENABLED false
+#endif