Changeset 238240 in webkit
- Timestamp:
- Nov 15, 2018 12:28:07 PM (5 years ago)
- Location:
- trunk/Source
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r238239 r238240 1 2018-11-15 Jiewen Tan <jiewen_tan@apple.com> 2 3 [WebAuthN] PublicKeyCredentialCreationOptions::AuthenticatorSelectionCriteria::AuthenticatorAttachment should be optional 4 https://bugs.webkit.org/show_bug.cgi?id=191522 5 6 Reviewed by Brent Fulgham. 7 8 Accordign to the WebIDL, AuthenticatorSelectionCriteria::AuthenticatorAttachment should be optional. 9 https://www.w3.org/TR/webauthn/#dictdef-authenticatorselectioncriteria 10 11 Covered by existing tests. 12 13 * Modules/webauthn/PublicKeyCredentialCreationOptions.h: 14 (WebCore::PublicKeyCredentialCreationOptions::AuthenticatorSelectionCriteria::decode): 15 1 16 2018-11-15 Ross Kirsling <ross.kirsling@sony.com> 2 17 -
trunk/Source/WebCore/Modules/webauthn/PublicKeyCredentialCreationOptions.h
r238166 r238240 67 67 68 68 struct AuthenticatorSelectionCriteria { 69 // FIXME(191522) 70 AuthenticatorAttachment authenticatorAttachment { AuthenticatorAttachment::CrossPlatform }; 69 std::optional<AuthenticatorAttachment> authenticatorAttachment; 71 70 bool requireResidentKey { false }; 72 71 UserVerificationRequirement userVerification { UserVerificationRequirement::Preferred }; … … 118 117 PublicKeyCredentialCreationOptions::AuthenticatorSelectionCriteria result; 119 118 120 std::optional< AuthenticatorAttachment> authenticatorAttachment;119 std::optional<std::optional<AuthenticatorAttachment>> authenticatorAttachment; 121 120 decoder >> authenticatorAttachment; 122 121 if (!authenticatorAttachment) -
trunk/Source/WebKit/ChangeLog
r238236 r238240 1 2018-11-15 Jiewen Tan <jiewen_tan@apple.com> 2 3 [WebAuthN] PublicKeyCredentialCreationOptions::AuthenticatorSelectionCriteria::AuthenticatorAttachment should be optional 4 https://bugs.webkit.org/show_bug.cgi?id=191522 5 6 Reviewed by Brent Fulgham. 7 8 * UIProcess/WebAuthentication/AuthenticatorManager.cpp: 9 (WebKit::AuthenticatorManagerInternal::collectTransports): 10 1 11 2018-11-15 Michael Catanzaro <mcatanzaro@igalia.com> 2 12 -
trunk/Source/WebKit/UIProcess/WebAuthentication/AuthenticatorManager.cpp
r238166 r238240 50 50 { 51 51 AuthenticatorManager::TransportSet result; 52 if (!authenticatorSelection ) {52 if (!authenticatorSelection || !authenticatorSelection->authenticatorAttachment) { 53 53 auto addResult = result.add(AuthenticatorTransport::Internal); 54 54 ASSERT_UNUSED(addResult, addResult.isNewEntry);
Note: See TracChangeset
for help on using the changeset viewer.