Changeset 238240 in webkit


Ignore:
Timestamp:
Nov 15, 2018 12:28:07 PM (5 years ago)
Author:
jiewen_tan@apple.com
Message:

[WebAuthN] PublicKeyCredentialCreationOptions::AuthenticatorSelectionCriteria::AuthenticatorAttachment should be optional
https://bugs.webkit.org/show_bug.cgi?id=191522

Reviewed by Brent Fulgham.

Source/WebCore:

Accordign to the WebIDL, AuthenticatorSelectionCriteria::AuthenticatorAttachment should be optional.
https://www.w3.org/TR/webauthn/#dictdef-authenticatorselectioncriteria

Covered by existing tests.

  • Modules/webauthn/PublicKeyCredentialCreationOptions.h:

(WebCore::PublicKeyCredentialCreationOptions::AuthenticatorSelectionCriteria::decode):

Source/WebKit:

  • UIProcess/WebAuthentication/AuthenticatorManager.cpp:

(WebKit::AuthenticatorManagerInternal::collectTransports):

Location:
trunk/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r238239 r238240  
     12018-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
    1162018-11-15  Ross Kirsling  <ross.kirsling@sony.com>
    217
  • trunk/Source/WebCore/Modules/webauthn/PublicKeyCredentialCreationOptions.h

    r238166 r238240  
    6767
    6868    struct AuthenticatorSelectionCriteria {
    69         // FIXME(191522)
    70         AuthenticatorAttachment authenticatorAttachment { AuthenticatorAttachment::CrossPlatform };
     69        std::optional<AuthenticatorAttachment> authenticatorAttachment;
    7170        bool requireResidentKey { false };
    7271        UserVerificationRequirement userVerification { UserVerificationRequirement::Preferred };
     
    118117    PublicKeyCredentialCreationOptions::AuthenticatorSelectionCriteria result;
    119118
    120     std::optional<AuthenticatorAttachment> authenticatorAttachment;
     119    std::optional<std::optional<AuthenticatorAttachment>> authenticatorAttachment;
    121120    decoder >> authenticatorAttachment;
    122121    if (!authenticatorAttachment)
  • trunk/Source/WebKit/ChangeLog

    r238236 r238240  
     12018-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
    1112018-11-15  Michael Catanzaro  <mcatanzaro@igalia.com>
    212
  • trunk/Source/WebKit/UIProcess/WebAuthentication/AuthenticatorManager.cpp

    r238166 r238240  
    5050{
    5151    AuthenticatorManager::TransportSet result;
    52     if (!authenticatorSelection) {
     52    if (!authenticatorSelection || !authenticatorSelection->authenticatorAttachment) {
    5353        auto addResult = result.add(AuthenticatorTransport::Internal);
    5454        ASSERT_UNUSED(addResult, addResult.isNewEntry);
Note: See TracChangeset for help on using the changeset viewer.