Title: [238240] trunk/Source
- Revision
- 238240
- Author
- [email protected]
- Date
- 2018-11-15 12:28:07 -0800 (Thu, 15 Nov 2018)
Log 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):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (238239 => 238240)
--- trunk/Source/WebCore/ChangeLog 2018-11-15 20:23:54 UTC (rev 238239)
+++ trunk/Source/WebCore/ChangeLog 2018-11-15 20:28:07 UTC (rev 238240)
@@ -1,3 +1,18 @@
+2018-11-15 Jiewen Tan <[email protected]>
+
+ [WebAuthN] PublicKeyCredentialCreationOptions::AuthenticatorSelectionCriteria::AuthenticatorAttachment should be optional
+ https://bugs.webkit.org/show_bug.cgi?id=191522
+
+ Reviewed by Brent Fulgham.
+
+ 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):
+
2018-11-15 Ross Kirsling <[email protected]>
DragImage should have a complete default implementation
Modified: trunk/Source/WebCore/Modules/webauthn/PublicKeyCredentialCreationOptions.h (238239 => 238240)
--- trunk/Source/WebCore/Modules/webauthn/PublicKeyCredentialCreationOptions.h 2018-11-15 20:23:54 UTC (rev 238239)
+++ trunk/Source/WebCore/Modules/webauthn/PublicKeyCredentialCreationOptions.h 2018-11-15 20:28:07 UTC (rev 238240)
@@ -66,8 +66,7 @@
};
struct AuthenticatorSelectionCriteria {
- // FIXME(191522)
- AuthenticatorAttachment authenticatorAttachment { AuthenticatorAttachment::CrossPlatform };
+ std::optional<AuthenticatorAttachment> authenticatorAttachment;
bool requireResidentKey { false };
UserVerificationRequirement userVerification { UserVerificationRequirement::Preferred };
@@ -117,7 +116,7 @@
{
PublicKeyCredentialCreationOptions::AuthenticatorSelectionCriteria result;
- std::optional<AuthenticatorAttachment> authenticatorAttachment;
+ std::optional<std::optional<AuthenticatorAttachment>> authenticatorAttachment;
decoder >> authenticatorAttachment;
if (!authenticatorAttachment)
return std::nullopt;
Modified: trunk/Source/WebKit/ChangeLog (238239 => 238240)
--- trunk/Source/WebKit/ChangeLog 2018-11-15 20:23:54 UTC (rev 238239)
+++ trunk/Source/WebKit/ChangeLog 2018-11-15 20:28:07 UTC (rev 238240)
@@ -1,3 +1,13 @@
+2018-11-15 Jiewen Tan <[email protected]>
+
+ [WebAuthN] PublicKeyCredentialCreationOptions::AuthenticatorSelectionCriteria::AuthenticatorAttachment should be optional
+ https://bugs.webkit.org/show_bug.cgi?id=191522
+
+ Reviewed by Brent Fulgham.
+
+ * UIProcess/WebAuthentication/AuthenticatorManager.cpp:
+ (WebKit::AuthenticatorManagerInternal::collectTransports):
+
2018-11-15 Michael Catanzaro <[email protected]>
[SOUP] Make Accept-Languages header look more like other browsers
Modified: trunk/Source/WebKit/UIProcess/WebAuthentication/AuthenticatorManager.cpp (238239 => 238240)
--- trunk/Source/WebKit/UIProcess/WebAuthentication/AuthenticatorManager.cpp 2018-11-15 20:23:54 UTC (rev 238239)
+++ trunk/Source/WebKit/UIProcess/WebAuthentication/AuthenticatorManager.cpp 2018-11-15 20:28:07 UTC (rev 238240)
@@ -49,7 +49,7 @@
static AuthenticatorManager::TransportSet collectTransports(const std::optional<PublicKeyCredentialCreationOptions::AuthenticatorSelectionCriteria>& authenticatorSelection)
{
AuthenticatorManager::TransportSet result;
- if (!authenticatorSelection) {
+ if (!authenticatorSelection || !authenticatorSelection->authenticatorAttachment) {
auto addResult = result.add(AuthenticatorTransport::Internal);
ASSERT_UNUSED(addResult, addResult.isNewEntry);
#if PLATFORM(MAC)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes