Title: [294298] branches/safari-613-branch/Source/WebKit
- Revision
- 294298
- Author
- [email protected]
- Date
- 2022-05-16 23:10:46 -0700 (Mon, 16 May 2022)
Log Message
Cherry-pick r293433. rdar://problem/91981865
[WebAuthn] Do not pass ASCCredentialRequestTypePlatform... if LocalService unavailable
https://bugs.webkit.org/show_bug.cgi?id=239746
rdar://91981865
Reviewed by Brent Fulgham.
Passing platform in requestTypes breaks the UI in registerations with the syncing platform
authenticator off and local service is unavailable. This patch stops passing it in this case.
* UIProcess/WebAuthentication/Cocoa/WebAuthenticatorCoordinatorProxy.mm:
(WebKit::configureRegistrationRequestContext):
(WebKit::WebAuthenticatorCoordinatorProxy::performRequest):
Canonical link: https://commits.webkit.org/249993@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@293433 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Modified Paths
Diff
Modified: branches/safari-613-branch/Source/WebKit/ChangeLog (294297 => 294298)
--- branches/safari-613-branch/Source/WebKit/ChangeLog 2022-05-17 06:10:43 UTC (rev 294297)
+++ branches/safari-613-branch/Source/WebKit/ChangeLog 2022-05-17 06:10:46 UTC (rev 294298)
@@ -1,5 +1,40 @@
2022-05-16 Alan Coon <[email protected]>
+ Cherry-pick r293433. rdar://problem/91981865
+
+ [WebAuthn] Do not pass ASCCredentialRequestTypePlatform... if LocalService unavailable
+ https://bugs.webkit.org/show_bug.cgi?id=239746
+ rdar://91981865
+
+ Reviewed by Brent Fulgham.
+
+ Passing platform in requestTypes breaks the UI in registerations with the syncing platform
+ authenticator off and local service is unavailable. This patch stops passing it in this case.
+
+ * UIProcess/WebAuthentication/Cocoa/WebAuthenticatorCoordinatorProxy.mm:
+ (WebKit::configureRegistrationRequestContext):
+ (WebKit::WebAuthenticatorCoordinatorProxy::performRequest):
+
+ Canonical link: https://commits.webkit.org/249993@main
+ git-svn-id: https://svn.webkit.org/repository/webkit/trunk@293433 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+ 2022-04-26 J Pascoe <[email protected]>
+
+ [WebAuthn] Do not pass ASCCredentialRequestTypePlatform... if LocalService unavailable
+ https://bugs.webkit.org/show_bug.cgi?id=239746
+ rdar://91981865
+
+ Reviewed by Brent Fulgham.
+
+ Passing platform in requestTypes breaks the UI in registerations with the syncing platform
+ authenticator off and local service is unavailable. This patch stops passing it in this case.
+
+ * UIProcess/WebAuthentication/Cocoa/WebAuthenticatorCoordinatorProxy.mm:
+ (WebKit::configureRegistrationRequestContext):
+ (WebKit::WebAuthenticatorCoordinatorProxy::performRequest):
+
+2022-05-16 Alan Coon <[email protected]>
+
Cherry-pick r293170. rdar://problem/91117803
AVSampleBufferRenderSynchronizer timeline sometimes goes backwards when playback begins
Modified: branches/safari-613-branch/Source/WebKit/UIProcess/WebAuthentication/Cocoa/WebAuthenticatorCoordinatorProxy.mm (294297 => 294298)
--- branches/safari-613-branch/Source/WebKit/UIProcess/WebAuthentication/Cocoa/WebAuthenticatorCoordinatorProxy.mm 2022-05-17 06:10:43 UTC (rev 294297)
+++ branches/safari-613-branch/Source/WebKit/UIProcess/WebAuthentication/Cocoa/WebAuthenticatorCoordinatorProxy.mm 2022-05-17 06:10:46 UTC (rev 294298)
@@ -190,6 +190,8 @@
shouldRequireResidentKey = authenticatorSelection->requireResidentKey;
}
+ if (!LocalService::isAvailable())
+ requestTypes &= ~ASCCredentialRequestTypePlatformPublicKeyRegistration;
auto requestContext = adoptNS([allocASCCredentialRequestContextInstance() initWithRequestTypes:requestTypes]);
[requestContext setRelyingPartyIdentifier:options.rp.id];
@@ -370,6 +372,10 @@
void WebAuthenticatorCoordinatorProxy::performRequest(RetainPtr<ASCCredentialRequestContext> requestContext, RequestCompletionHandler&& handler)
{
+ if (requestContext.get().requestTypes == ASCCredentialRequestTypeNone) {
+ handler({ }, (AuthenticatorAttachment)0, ExceptionData { NotAllowedError, "This request has been cancelled by the user."_s });
+ return;
+ }
m_proxy = adoptNS([allocASCAgentProxyInstance() init]);
#if PLATFORM(IOS)
[m_proxy performAuthorizationRequestsForContext:requestContext.get() withCompletionHandler:makeBlockPtr([handler = WTFMove(handler)](id<ASCCredentialProtocol> credential, NSError *error) mutable {
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes