Title: [290392] trunk
- Revision
- 290392
- Author
- [email protected]
- Date
- 2022-02-23 14:33:42 -0800 (Wed, 23 Feb 2022)
Log Message
[WebAuthn] Improve error message for missing pubKeyCredParams
https://bugs.webkit.org/show_bug.cgi?id=235421
rdar://87884875
Reviewed by Brent Fulgham.
Source/WebCore:
We have seen confusion from library authors around the language
used in this error not indicating enough information about what
the problem is. This patch adds additional information, useful
to developers seeing this error.
* Modules/webauthn/AuthenticatorCoordinator.cpp:
(WebCore::AuthenticatorCoordinator::create const):
LayoutTests:
Update test to reflect new error message.
* http/wpt/webauthn/public-key-credential-create-failure.https.html:
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (290391 => 290392)
--- trunk/LayoutTests/ChangeLog 2022-02-23 21:40:10 UTC (rev 290391)
+++ trunk/LayoutTests/ChangeLog 2022-02-23 22:33:42 UTC (rev 290392)
@@ -1,3 +1,15 @@
+2022-02-23 J Pascoe <[email protected]>
+
+ [WebAuthn] Improve error message for missing pubKeyCredParams
+ https://bugs.webkit.org/show_bug.cgi?id=235421
+ rdar://87884875
+
+ Reviewed by Brent Fulgham.
+
+ Update test to reflect new error message.
+
+ * http/wpt/webauthn/public-key-credential-create-failure.https.html:
+
2022-02-23 Alan Bujtas <[email protected]>
[Subpixel] imported/w3c/web-platform-tests/css/css-flexbox/auto-margins-001.html fails at certain font sizes
Modified: trunk/LayoutTests/http/wpt/webauthn/public-key-credential-create-failure.https.html (290391 => 290392)
--- trunk/LayoutTests/http/wpt/webauthn/public-key-credential-create-failure.https.html 2022-02-23 21:40:10 UTC (rev 290391)
+++ trunk/LayoutTests/http/wpt/webauthn/public-key-credential-create-failure.https.html 2022-02-23 22:33:42 UTC (rev 290392)
@@ -68,7 +68,7 @@
};
return promiseRejects(t, "NotSupportedError",
- navigator.credentials.create(options), "No desired properties of the to be created credential are provided.");
+ navigator.credentials.create(options), "Unable to create credential because options.pubKeyCredParams is empty.");
}, "PublicKeyCredential's [[create]] with an empty pubKeyCredParams");
promise_test(function(t) {
Modified: trunk/Source/WebCore/ChangeLog (290391 => 290392)
--- trunk/Source/WebCore/ChangeLog 2022-02-23 21:40:10 UTC (rev 290391)
+++ trunk/Source/WebCore/ChangeLog 2022-02-23 22:33:42 UTC (rev 290392)
@@ -1,3 +1,19 @@
+2022-02-23 J Pascoe <[email protected]>
+
+ [WebAuthn] Improve error message for missing pubKeyCredParams
+ https://bugs.webkit.org/show_bug.cgi?id=235421
+ rdar://87884875
+
+ Reviewed by Brent Fulgham.
+
+ We have seen confusion from library authors around the language
+ used in this error not indicating enough information about what
+ the problem is. This patch adds additional information, useful
+ to developers seeing this error.
+
+ * Modules/webauthn/AuthenticatorCoordinator.cpp:
+ (WebCore::AuthenticatorCoordinator::create const):
+
2022-02-23 Alan Bujtas <[email protected]>
[IFC][Integration] LineLayout::firstLinePhysicalBaseline/lastLineLogicalBaseline should flip box baseline value for vertical-lr
Modified: trunk/Source/WebCore/Modules/webauthn/AuthenticatorCoordinator.cpp (290391 => 290392)
--- trunk/Source/WebCore/Modules/webauthn/AuthenticatorCoordinator.cpp 2022-02-23 21:40:10 UTC (rev 290391)
+++ trunk/Source/WebCore/Modules/webauthn/AuthenticatorCoordinator.cpp 2022-02-23 22:33:42 UTC (rev 290392)
@@ -141,7 +141,7 @@
// Most of the jobs are done by bindings. However, we can't know if the JSValue of options.pubKeyCredParams
// is empty or not. Return NotSupportedError as long as it is empty.
if (options.pubKeyCredParams.isEmpty()) {
- promise.reject(Exception { NotSupportedError, "No desired properties of the to be created credential are provided."_s });
+ promise.reject(Exception { NotSupportedError, "Unable to create credential because options.pubKeyCredParams is empty."_s });
return;
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes