Title: [290840] trunk/Source/WebKit
- Revision
- 290840
- Author
- [email protected]
- Date
- 2022-03-04 12:33:12 -0800 (Fri, 04 Mar 2022)
Log Message
[WebAuthn] Don't use decidePolicyForLocalAuthenticator for Web Authentication Modern
https://bugs.webkit.org/show_bug.cgi?id=225646
rdar://78147681
Reviewed by Brent Fulgham.
decidePolicyForLocalAuthenticator is not implemented for the _WKWebAuthenticationPanelDelegate
used for modern because the prompt to allow Touch/FaceID comes earlier in the process.
* UIProcess/WebAuthentication/Cocoa/LocalAuthenticator.mm:
(WebKit::LocalAuthenticator::makeCredential):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (290839 => 290840)
--- trunk/Source/WebKit/ChangeLog 2022-03-04 19:40:31 UTC (rev 290839)
+++ trunk/Source/WebKit/ChangeLog 2022-03-04 20:33:12 UTC (rev 290840)
@@ -1,3 +1,17 @@
+2022-03-04 J Pascoe <[email protected]>
+
+ [WebAuthn] Don't use decidePolicyForLocalAuthenticator for Web Authentication Modern
+ https://bugs.webkit.org/show_bug.cgi?id=225646
+ rdar://78147681
+
+ Reviewed by Brent Fulgham.
+
+ decidePolicyForLocalAuthenticator is not implemented for the _WKWebAuthenticationPanelDelegate
+ used for modern because the prompt to allow Touch/FaceID comes earlier in the process.
+
+ * UIProcess/WebAuthentication/Cocoa/LocalAuthenticator.mm:
+ (WebKit::LocalAuthenticator::makeCredential):
+
2022-03-04 Per Arne Vollan <[email protected]>
[iOS] Hard link AVPictureInPictureController
Modified: trunk/Source/WebKit/UIProcess/WebAuthentication/Cocoa/LocalAuthenticator.mm (290839 => 290840)
--- trunk/Source/WebKit/UIProcess/WebAuthentication/Cocoa/LocalAuthenticator.mm 2022-03-04 19:40:31 UTC (rev 290839)
+++ trunk/Source/WebKit/UIProcess/WebAuthentication/Cocoa/LocalAuthenticator.mm 2022-03-04 20:33:12 UTC (rev 290840)
@@ -249,7 +249,11 @@
else
weakThis->receiveException({ NotAllowedError, "This request has been cancelled by the user."_s });
};
- observer()->decidePolicyForLocalAuthenticator(WTFMove(callback));
+ // Similar to below, consent has already been given.
+ if (webAuthenticationModernEnabled())
+ callback(LocalAuthenticatorPolicy::Allow);
+ else
+ observer()->decidePolicyForLocalAuthenticator(WTFMove(callback));
return;
}
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes