Changeset 271753 in webkit


Ignore:
Timestamp:
Jan 22, 2021 11:53:55 AM (3 years ago)
Author:
jiewen_tan@apple.com
Message:

[WebAuthn] Should only check default browsers for the Modern WebAuthn
https://bugs.webkit.org/show_bug.cgi?id=220840
<rdar://problem/73375937>

Reviewed by Brent Fulgham.

  • WebProcess/WebAuthentication/WebAuthenticatorCoordinator.cpp:

(WebKit::WebAuthenticatorCoordinator::makeCredential):
(WebKit::WebAuthenticatorCoordinator::getAssertion):
(WebKit::WebAuthenticatorCoordinator::isUserVerifyingPlatformAuthenticatorAvailable):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r271737 r271753  
     12021-01-22  Jiewen Tan  <jiewen_tan@apple.com>
     2
     3        [WebAuthn] Should only check default browsers for the Modern WebAuthn
     4        https://bugs.webkit.org/show_bug.cgi?id=220840
     5        <rdar://problem/73375937>
     6
     7        Reviewed by Brent Fulgham.
     8
     9        * WebProcess/WebAuthentication/WebAuthenticatorCoordinator.cpp:
     10        (WebKit::WebAuthenticatorCoordinator::makeCredential):
     11        (WebKit::WebAuthenticatorCoordinator::getAssertion):
     12        (WebKit::WebAuthenticatorCoordinator::isUserVerifyingPlatformAuthenticatorAvailable):
     13
    1142021-01-21  Peng Liu  <peng.liu6@apple.com>
    215
  • trunk/Source/WebKit/WebProcess/WebAuthentication/WebAuthenticatorCoordinator.cpp

    r270743 r271753  
    7373
    7474    if (!RuntimeEnabledFeatures::sharedFeatures().webAuthenticationModernEnabled()) {
    75         if (!isWebBrowser())
    76             return;
    77 
    7875        m_webPage.sendWithAsyncReply(Messages::WebAuthenticatorCoordinatorProxy::MakeCredential(webFrame->frameID(), webFrame->info(), hash, options, processingUserGesture), WTFMove(handler));
    7976        return;
    8077    }
    8178
     79    if (!isWebBrowser())
     80        return;
    8281    WebProcess::singleton().ensureWebAuthnProcessConnection().connection().sendWithAsyncReply(Messages::WebAuthnConnectionToWebProcess::MakeCredential(hash, options, processingUserGesture), WTFMove(handler));
    8382}
     
    9493
    9594    if (!RuntimeEnabledFeatures::sharedFeatures().webAuthenticationModernEnabled()) {
    96         if (!isWebBrowser())
    97             return;
    98 
    9995        m_webPage.sendWithAsyncReply(Messages::WebAuthenticatorCoordinatorProxy::GetAssertion(webFrame->frameID(), webFrame->info(), hash, options, processingUserGesture), WTFMove(handler));
    10096        return;
    10197    }
    10298
     99    if (!isWebBrowser())
     100        return;
    103101    WebProcess::singleton().ensureWebAuthnProcessConnection().connection().sendWithAsyncReply(Messages::WebAuthnConnectionToWebProcess::GetAssertion(hash, options, processingUserGesture), WTFMove(handler));
    104102}
     
    107105{
    108106    if (!RuntimeEnabledFeatures::sharedFeatures().webAuthenticationModernEnabled()) {
    109         if (!isWebBrowser())
    110             return;
    111 
    112107        m_webPage.sendWithAsyncReply(Messages::WebAuthenticatorCoordinatorProxy::IsUserVerifyingPlatformAuthenticatorAvailable(), WTFMove(handler));
    113108        return;
    114109    }
    115110
     111    if (!isWebBrowser())
     112        return;
    116113    WebProcess::singleton().ensureWebAuthnProcessConnection().connection().sendWithAsyncReply(Messages::WebAuthnConnectionToWebProcess::IsUserVerifyingPlatformAuthenticatorAvailable(), WTFMove(handler));
    117114}
Note: See TracChangeset for help on using the changeset viewer.