Changeset 291761 in webkit


Ignore:
Timestamp:
Mar 23, 2022 12:24:00 PM (4 months ago)
Author:
J Pascoe
Message:

[WebAuthn] Specify correct ASCPublicKeyCredentialKind in configureAssertionOptions
https://bugs.webkit.org/show_bug.cgi?id=238272
rdar://problem/90710080

Reviewed by Brent Fulgham.

There was a typo when refactoring code into this method. The kind passed to the function
should be used, instead of always ASCPublicKeyCredentialKindPlatform.

  • UIProcess/WebAuthentication/Cocoa/WebAuthenticatorCoordinatorProxy.mm:

(WebKit::configureAssertionOptions):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r291749 r291761  
     12022-03-23  J Pascoe  <j_pascoe@apple.com>
     2
     3        [WebAuthn] Specify correct ASCPublicKeyCredentialKind in configureAssertionOptions
     4        https://bugs.webkit.org/show_bug.cgi?id=238272
     5        rdar://problem/90710080
     6
     7        Reviewed by Brent Fulgham.
     8
     9        There was a typo when refactoring code into this method. The kind passed to the function
     10        should be used, instead of always ASCPublicKeyCredentialKindPlatform.
     11
     12        * UIProcess/WebAuthentication/Cocoa/WebAuthenticatorCoordinatorProxy.mm:
     13        (WebKit::configureAssertionOptions):
     14
    1152022-03-23  Kimmo Kinnunen  <kkinnunen@apple.com>
    216
  • trunk/Source/WebKit/UIProcess/WebAuthentication/Cocoa/WebAuthenticatorCoordinatorProxy.mm

    r291625 r291761  
    256256    if ([assertionOptions respondsToSelector:@selector(initWithKind:relyingPartyIdentifier:clientDataHash:userVerificationPreference:allowedCredentials:)]) {
    257257        auto nsHash = toNSData(hash);
    258         [assertionOptions initWithKind:ASCPublicKeyCredentialKindPlatform relyingPartyIdentifier:options.rpId clientDataHash:nsHash.get() userVerificationPreference:userVerification.get() allowedCredentials:allowedCredentials.get()];
     258        [assertionOptions initWithKind:kind relyingPartyIdentifier:options.rpId clientDataHash:nsHash.get() userVerificationPreference:userVerification.get() allowedCredentials:allowedCredentials.get()];
    259259    } else {
    260260        auto challenge = WebCore::toNSData(options.challenge);
    261         [assertionOptions initWithKind:ASCPublicKeyCredentialKindPlatform relyingPartyIdentifier:options.rpId challenge:challenge.get() userVerificationPreference:userVerification.get() allowedCredentials:allowedCredentials.get()];
     261        [assertionOptions initWithKind:kind relyingPartyIdentifier:options.rpId challenge:challenge.get() userVerificationPreference:userVerification.get() allowedCredentials:allowedCredentials.get()];
    262262    }
    263263    if (options.extensions)
Note: See TracChangeset for help on using the changeset viewer.