Title: [250734] branches/safari-608-branch/Source/WebKit
Revision
250734
Author
[email protected]
Date
2019-10-04 11:43:08 -0700 (Fri, 04 Oct 2019)

Log Message

Cherry-pick r249600. rdar://problem/55989214

    [WebAuthn] Make WebAuthn default off and let clients turn it on at will
    https://bugs.webkit.org/show_bug.cgi?id=201439
    <rdar://problem/54998154>

    Reviewed by Youenn Fablet.

    This patch makes WebAuthn default off such that clients that have the right entitlements
    could turn it on and we don't risk at turning on a Web API that does nothing by default.

    This patch doesn't add any SPI to turn the feature on as it is currently doable via
    - [WKPreferencesPrivate _setEnabled:forExperimentalFeature:].

    * Shared/WebPreferences.yaml:
    * Shared/WebPreferencesDefaultValues.cpp:
    (WebKit::defaultWebAuthenticationEnabled): Deleted.
    * Shared/WebPreferencesDefaultValues.h:

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

Modified Paths

Diff

Modified: branches/safari-608-branch/Source/WebKit/ChangeLog (250733 => 250734)


--- branches/safari-608-branch/Source/WebKit/ChangeLog	2019-10-04 18:43:03 UTC (rev 250733)
+++ branches/safari-608-branch/Source/WebKit/ChangeLog	2019-10-04 18:43:08 UTC (rev 250734)
@@ -1,5 +1,48 @@
 2019-10-04  Kocsen Chung  <[email protected]>
 
+        Cherry-pick r249600. rdar://problem/55989214
+
+    [WebAuthn] Make WebAuthn default off and let clients turn it on at will
+    https://bugs.webkit.org/show_bug.cgi?id=201439
+    <rdar://problem/54998154>
+    
+    Reviewed by Youenn Fablet.
+    
+    This patch makes WebAuthn default off such that clients that have the right entitlements
+    could turn it on and we don't risk at turning on a Web API that does nothing by default.
+    
+    This patch doesn't add any SPI to turn the feature on as it is currently doable via
+    - [WKPreferencesPrivate _setEnabled:forExperimentalFeature:].
+    
+    * Shared/WebPreferences.yaml:
+    * Shared/WebPreferencesDefaultValues.cpp:
+    (WebKit::defaultWebAuthenticationEnabled): Deleted.
+    * Shared/WebPreferencesDefaultValues.h:
+    
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@249600 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2019-09-06  Jiewen Tan  <[email protected]>
+
+            [WebAuthn] Make WebAuthn default off and let clients turn it on at will
+            https://bugs.webkit.org/show_bug.cgi?id=201439
+            <rdar://problem/54998154>
+
+            Reviewed by Youenn Fablet.
+
+            This patch makes WebAuthn default off such that clients that have the right entitlements
+            could turn it on and we don't risk at turning on a Web API that does nothing by default.
+
+            This patch doesn't add any SPI to turn the feature on as it is currently doable via
+            - [WKPreferencesPrivate _setEnabled:forExperimentalFeature:].
+
+            * Shared/WebPreferences.yaml:
+            * Shared/WebPreferencesDefaultValues.cpp:
+            (WebKit::defaultWebAuthenticationEnabled): Deleted.
+            * Shared/WebPreferencesDefaultValues.h:
+
+2019-10-04  Kocsen Chung  <[email protected]>
+
         Cherry-pick r249436. rdar://problem/55989217
 
     [WebAuthn] Enable WebAuthn by default for MobileSafari and SafariViewService

Modified: branches/safari-608-branch/Source/WebKit/Shared/WebPreferences.yaml (250733 => 250734)


--- branches/safari-608-branch/Source/WebKit/Shared/WebPreferences.yaml	2019-10-04 18:43:03 UTC (rev 250733)
+++ branches/safari-608-branch/Source/WebKit/Shared/WebPreferences.yaml	2019-10-04 18:43:08 UTC (rev 250734)
@@ -762,7 +762,7 @@
 
 WebAuthenticationEnabled:
   type: bool
-  defaultValue: defaultWebAuthenticationEnabled()
+  defaultValue: false
   humanReadableName: "Web Authentication"
   humanReadableDescription: "Enable Web Authentication support"
   webcoreBinding: RuntimeEnabledFeatures

Modified: branches/safari-608-branch/Source/WebKit/Shared/WebPreferencesDefaultValues.cpp (250733 => 250734)


--- branches/safari-608-branch/Source/WebKit/Shared/WebPreferencesDefaultValues.cpp	2019-10-04 18:43:03 UTC (rev 250733)
+++ branches/safari-608-branch/Source/WebKit/Shared/WebPreferencesDefaultValues.cpp	2019-10-04 18:43:08 UTC (rev 250734)
@@ -79,15 +79,4 @@
 
 #endif // ENABLE(TEXT_AUTOSIZING) && !PLATFORM(IOS_FAMILY)
 
-bool defaultWebAuthenticationEnabled()
-{
-#if PLATFORM(IOS_FAMILY)
-    return WebCore::IOSApplication::isMobileSafari() || WebCore::IOSApplication::isSafariViewService();
-#elif PLATFORM(MAC)
-    return true;
-#else
-    return false;
-#endif
-}
-
 } // namespace WebKit

Modified: branches/safari-608-branch/Source/WebKit/Shared/WebPreferencesDefaultValues.h (250733 => 250734)


--- branches/safari-608-branch/Source/WebKit/Shared/WebPreferencesDefaultValues.h	2019-10-04 18:43:03 UTC (rev 250733)
+++ branches/safari-608-branch/Source/WebKit/Shared/WebPreferencesDefaultValues.h	2019-10-04 18:43:08 UTC (rev 250734)
@@ -280,6 +280,4 @@
 bool defaultTextAutosizingUsesIdempotentMode();
 #endif
 
-bool defaultWebAuthenticationEnabled();
-
 } // namespace WebKit
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to