Title: [275847] trunk/Source/WebKit
Revision
275847
Author
[email protected]
Date
2021-04-12 16:54:00 -0700 (Mon, 12 Apr 2021)

Log Message

Force the WebAuthn compatible mode to always show UI
https://bugs.webkit.org/show_bug.cgi?id=224402
<rdar://75757362>

Reviewed by Brent Fulgham.

Covered by manual tests.

* UIProcess/WebAuthentication/Cocoa/LocalConnection.mm:
(WebKit::LocalConnection::verifyUser):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (275846 => 275847)


--- trunk/Source/WebKit/ChangeLog	2021-04-12 23:43:49 UTC (rev 275846)
+++ trunk/Source/WebKit/ChangeLog	2021-04-12 23:54:00 UTC (rev 275847)
@@ -1,3 +1,16 @@
+2021-04-12  Jiewen Tan  <[email protected]>
+
+        Force the WebAuthn compatible mode to always show UI
+        https://bugs.webkit.org/show_bug.cgi?id=224402
+        <rdar://75757362>
+
+        Reviewed by Brent Fulgham.
+
+        Covered by manual tests.
+
+        * UIProcess/WebAuthentication/Cocoa/LocalConnection.mm:
+        (WebKit::LocalConnection::verifyUser):
+
 2021-04-12  Sihui Liu  <[email protected]>
 
         Create WebIDBServer only when it is needed

Modified: trunk/Source/WebKit/UIProcess/WebAuthentication/Cocoa/LocalConnection.mm (275846 => 275847)


--- trunk/Source/WebKit/UIProcess/WebAuthentication/Cocoa/LocalConnection.mm	2021-04-12 23:43:49 UTC (rev 275846)
+++ trunk/Source/WebKit/UIProcess/WebAuthentication/Cocoa/LocalConnection.mm	2021-04-12 23:54:00 UTC (rev 275847)
@@ -99,6 +99,14 @@
         });
     });
 
+#if USE(APPLE_INTERNAL_SDK)
+    // A quirk to force the compatible mode to always show UI.
+    if (shouldUseAlternateAttributes()) {
+        [m_context evaluatePolicy:LAPolicyDeviceOwnerAuthentication options:options.get() reply:reply.get()];
+        return;
+    }
+#endif
+
     [m_context evaluateAccessControl:accessControl operation:LAAccessControlOperationUseKeySign options:options.get() reply:reply.get()];
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to