Title: [291761] trunk/Source/WebKit
- Revision
- 291761
- Author
- [email protected]
- Date
- 2022-03-23 12:24:00 -0700 (Wed, 23 Mar 2022)
Log 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):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (291760 => 291761)
--- trunk/Source/WebKit/ChangeLog 2022-03-23 19:22:04 UTC (rev 291760)
+++ trunk/Source/WebKit/ChangeLog 2022-03-23 19:24:00 UTC (rev 291761)
@@ -1,3 +1,17 @@
+2022-03-23 J Pascoe <[email protected]>
+
+ [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):
+
2022-03-23 Kimmo Kinnunen <[email protected]>
After losing context due to too many contexts, getError() does not return CONTEXT_LOST_WEBGL
Modified: trunk/Source/WebKit/UIProcess/WebAuthentication/Cocoa/WebAuthenticatorCoordinatorProxy.mm (291760 => 291761)
--- trunk/Source/WebKit/UIProcess/WebAuthentication/Cocoa/WebAuthenticatorCoordinatorProxy.mm 2022-03-23 19:22:04 UTC (rev 291760)
+++ trunk/Source/WebKit/UIProcess/WebAuthentication/Cocoa/WebAuthenticatorCoordinatorProxy.mm 2022-03-23 19:24:00 UTC (rev 291761)
@@ -255,10 +255,10 @@
auto assertionOptions = adoptNS(allocASCPublicKeyCredentialAssertionOptionsInstance());
if ([assertionOptions respondsToSelector:@selector(initWithKind:relyingPartyIdentifier:clientDataHash:userVerificationPreference:allowedCredentials:)]) {
auto nsHash = toNSData(hash);
- [assertionOptions initWithKind:ASCPublicKeyCredentialKindPlatform relyingPartyIdentifier:options.rpId clientDataHash:nsHash.get() userVerificationPreference:userVerification.get() allowedCredentials:allowedCredentials.get()];
+ [assertionOptions initWithKind:kind relyingPartyIdentifier:options.rpId clientDataHash:nsHash.get() userVerificationPreference:userVerification.get() allowedCredentials:allowedCredentials.get()];
} else {
auto challenge = WebCore::toNSData(options.challenge);
- [assertionOptions initWithKind:ASCPublicKeyCredentialKindPlatform relyingPartyIdentifier:options.rpId challenge:challenge.get() userVerificationPreference:userVerification.get() allowedCredentials:allowedCredentials.get()];
+ [assertionOptions initWithKind:kind relyingPartyIdentifier:options.rpId challenge:challenge.get() userVerificationPreference:userVerification.get() allowedCredentials:allowedCredentials.get()];
}
if (options.extensions)
[assertionOptions setExtensions:toASCExtensions(*options.extensions).get()];
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes