Changeset 294298 in webkit
- Timestamp:
- May 16, 2022, 11:10:46 PM (3 years ago)
- Location:
- branches/safari-613-branch/Source/WebKit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-613-branch/Source/WebKit/ChangeLog
r294295 r294298 1 2022-05-16 Alan Coon <alancoon@apple.com> 2 3 Cherry-pick r293433. rdar://problem/91981865 4 5 [WebAuthn] Do not pass ASCCredentialRequestTypePlatform... if LocalService unavailable 6 https://bugs.webkit.org/show_bug.cgi?id=239746 7 rdar://91981865 8 9 Reviewed by Brent Fulgham. 10 11 Passing platform in requestTypes breaks the UI in registerations with the syncing platform 12 authenticator off and local service is unavailable. This patch stops passing it in this case. 13 14 * UIProcess/WebAuthentication/Cocoa/WebAuthenticatorCoordinatorProxy.mm: 15 (WebKit::configureRegistrationRequestContext): 16 (WebKit::WebAuthenticatorCoordinatorProxy::performRequest): 17 18 Canonical link: https://commits.webkit.org/249993@main 19 git-svn-id: https://svn.webkit.org/repository/webkit/trunk@293433 268f45cc-cd09-0410-ab3c-d52691b4dbfc 20 21 2022-04-26 J Pascoe <j_pascoe@apple.com> 22 23 [WebAuthn] Do not pass ASCCredentialRequestTypePlatform... if LocalService unavailable 24 https://bugs.webkit.org/show_bug.cgi?id=239746 25 rdar://91981865 26 27 Reviewed by Brent Fulgham. 28 29 Passing platform in requestTypes breaks the UI in registerations with the syncing platform 30 authenticator off and local service is unavailable. This patch stops passing it in this case. 31 32 * UIProcess/WebAuthentication/Cocoa/WebAuthenticatorCoordinatorProxy.mm: 33 (WebKit::configureRegistrationRequestContext): 34 (WebKit::WebAuthenticatorCoordinatorProxy::performRequest): 35 1 36 2022-05-16 Alan Coon <alancoon@apple.com> 2 37 -
branches/safari-613-branch/Source/WebKit/UIProcess/WebAuthentication/Cocoa/WebAuthenticatorCoordinatorProxy.mm
r292177 r294298 191 191 shouldRequireResidentKey = authenticatorSelection->requireResidentKey; 192 192 } 193 if (!LocalService::isAvailable()) 194 requestTypes &= ~ASCCredentialRequestTypePlatformPublicKeyRegistration; 193 195 194 196 auto requestContext = adoptNS([allocASCCredentialRequestContextInstance() initWithRequestTypes:requestTypes]); … … 371 373 void WebAuthenticatorCoordinatorProxy::performRequest(RetainPtr<ASCCredentialRequestContext> requestContext, RequestCompletionHandler&& handler) 372 374 { 375 if (requestContext.get().requestTypes == ASCCredentialRequestTypeNone) { 376 handler({ }, (AuthenticatorAttachment)0, ExceptionData { NotAllowedError, "This request has been cancelled by the user."_s }); 377 return; 378 } 373 379 m_proxy = adoptNS([allocASCAgentProxyInstance() init]); 374 380 #if PLATFORM(IOS)
Note:
See TracChangeset
for help on using the changeset viewer.