Changeset 294298 in webkit


Ignore:
Timestamp:
May 16, 2022, 11:10:46 PM (3 years ago)
Author:
Alan Coon
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

Location:
branches/safari-613-branch/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-613-branch/Source/WebKit/ChangeLog

    r294295 r294298  
     12022-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
    1362022-05-16  Alan Coon  <alancoon@apple.com>
    237
  • branches/safari-613-branch/Source/WebKit/UIProcess/WebAuthentication/Cocoa/WebAuthenticatorCoordinatorProxy.mm

    r292177 r294298  
    191191        shouldRequireResidentKey = authenticatorSelection->requireResidentKey;
    192192    }
     193    if (!LocalService::isAvailable())
     194        requestTypes &= ~ASCCredentialRequestTypePlatformPublicKeyRegistration;
    193195
    194196    auto requestContext = adoptNS([allocASCCredentialRequestContextInstance() initWithRequestTypes:requestTypes]);
     
    371373void WebAuthenticatorCoordinatorProxy::performRequest(RetainPtr<ASCCredentialRequestContext> requestContext, RequestCompletionHandler&& handler)
    372374{
     375    if (requestContext.get().requestTypes == ASCCredentialRequestTypeNone) {
     376        handler({ }, (AuthenticatorAttachment)0, ExceptionData { NotAllowedError, "This request has been cancelled by the user."_s });
     377        return;
     378    }
    373379    m_proxy = adoptNS([allocASCAgentProxyInstance() init]);
    374380#if PLATFORM(IOS)
Note: See TracChangeset for help on using the changeset viewer.