Title: [292089] branches/safari-613-branch
- Revision
- 292089
- Author
- [email protected]
- Date
- 2022-03-29 18:35:53 -0700 (Tue, 29 Mar 2022)
Log Message
Cherry-pick r290392. rdar://problem/90957261
[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:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@290392 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Modified Paths
Diff
Modified: branches/safari-613-branch/LayoutTests/ChangeLog (292088 => 292089)
--- branches/safari-613-branch/LayoutTests/ChangeLog 2022-03-30 01:27:21 UTC (rev 292088)
+++ branches/safari-613-branch/LayoutTests/ChangeLog 2022-03-30 01:35:53 UTC (rev 292089)
@@ -1,3 +1,43 @@
+2022-03-29 Russell Epstein <[email protected]>
+
+ Cherry-pick r290392. rdar://problem/90957261
+
+ [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:
+
+ git-svn-id: https://svn.webkit.org/repository/webkit/trunk@290392 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+ 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-03-28 Alan Coon <[email protected]>
Cherry-pick r291622. rdar://problem/90935942
Modified: branches/safari-613-branch/Source/WebCore/ChangeLog (292088 => 292089)
--- branches/safari-613-branch/Source/WebCore/ChangeLog 2022-03-30 01:27:21 UTC (rev 292088)
+++ branches/safari-613-branch/Source/WebCore/ChangeLog 2022-03-30 01:35:53 UTC (rev 292089)
@@ -1,3 +1,47 @@
+2022-03-29 Russell Epstein <[email protected]>
+
+ Cherry-pick r290392. rdar://problem/90957261
+
+ [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:
+
+ git-svn-id: https://svn.webkit.org/repository/webkit/trunk@290392 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+ 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-03-29 Alex Christensen <[email protected]>
Revert r292055
Modified: branches/safari-613-branch/Source/WebCore/Modules/webauthn/AuthenticatorCoordinator.cpp (292088 => 292089)
--- branches/safari-613-branch/Source/WebCore/Modules/webauthn/AuthenticatorCoordinator.cpp 2022-03-30 01:27:21 UTC (rev 292088)
+++ branches/safari-613-branch/Source/WebCore/Modules/webauthn/AuthenticatorCoordinator.cpp 2022-03-30 01:35:53 UTC (rev 292089)
@@ -145,7 +145,7 @@
return pubKeyCredParam.type != PublicKeyCredentialType::PublicKey;
})) {
- promise.reject(Exception { NotSupportedError, "options.pubKeyCredParams contains unsupported PublicKeyCredentialType value."_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