Diff
Modified: trunk/LayoutTests/ChangeLog (290750 => 290751)
--- trunk/LayoutTests/ChangeLog 2022-03-02 20:59:53 UTC (rev 290750)
+++ trunk/LayoutTests/ChangeLog 2022-03-02 21:04:20 UTC (rev 290751)
@@ -1,3 +1,20 @@
+2022-03-02 J Pascoe <[email protected]>
+
+ [WebAuthn] Remove obsolete failed attestation tests
+ https://bugs.webkit.org/show_bug.cgi?id=237346
+ rdar://problem/89647260
+
+ Reviewed by Brent Fulgham.
+
+ The removed items tested that creation fails whenever attestation fails, however
+ we've changed behavior such that creation succeeds with 'none' attestation in this
+ case, making these failure tests obsolete.
+
+ * http/wpt/webauthn/public-key-credential-create-failure-local-silent.https-expected.txt:
+ * http/wpt/webauthn/public-key-credential-create-failure-local-silent.https.html:
+ * http/wpt/webauthn/public-key-credential-create-failure-local.https-expected.txt:
+ * http/wpt/webauthn/public-key-credential-create-failure-local.https.html:
+
2022-03-02 Matteo Flores <[email protected]>
[ iOS Debug ] editing/async-clipboard/* 20 tests are flaky timeouts on iOS.
Modified: trunk/LayoutTests/http/wpt/webauthn/public-key-credential-create-failure-local-silent.https-expected.txt (290750 => 290751)
--- trunk/LayoutTests/http/wpt/webauthn/public-key-credential-create-failure-local-silent.https-expected.txt 2022-03-02 20:59:53 UTC (rev 290750)
+++ trunk/LayoutTests/http/wpt/webauthn/public-key-credential-create-failure-local-silent.https-expected.txt 2022-03-02 21:04:20 UTC (rev 290751)
@@ -9,5 +9,4 @@
PASS PublicKeyCredential's [[create]] with matched exclude credentials in a mock local authenticator. 2nd
PASS PublicKeyCredential's [[create]] without user consent in a mock local authenticator.
PASS PublicKeyCredential's [[create]] without private keys in a mock local authenticator.
-PASS PublicKeyCredential's [[create]] without attestation in a mock local authenticator.
Modified: trunk/LayoutTests/http/wpt/webauthn/public-key-credential-create-failure-local-silent.https.html (290750 => 290751)
--- trunk/LayoutTests/http/wpt/webauthn/public-key-credential-create-failure-local-silent.https.html 2022-03-02 20:59:53 UTC (rev 290750)
+++ trunk/LayoutTests/http/wpt/webauthn/public-key-credential-create-failure-local-silent.https.html 2022-03-02 21:04:20 UTC (rev 290751)
@@ -129,33 +129,4 @@
internals.setMockWebAuthenticationConfiguration({ silentFailure: true, local: { userVerification: "yes", acceptAttestation: false } });
return promiseRejects(t, "NotAllowedError", navigator.credentials.create(options), "Operation timed out.");
}, "PublicKeyCredential's [[create]] without private keys in a mock local authenticator.");
-
- promise_test(async t => {
- const privateKeyBase64 = await generatePrivateKeyBase64();
- const credentialID = await calculateCredentialID(privateKeyBase64);
- const credentialIDBase64 = base64encode(credentialID);
-
- const options = {
- publicKey: {
- rp: {
- name: "example.com"
- },
- user: {
- name: "John Appleseed",
- id: Base64URL.parse(testUserhandleBase64),
- displayName: "John",
- },
- challenge: asciiToUint8Array("123456"),
- pubKeyCredParams: [{ type: "public-key", alg: -7 }],
- attestation: "direct",
- timeout: 10
- }
- };
- if (window.internals)
- internals.setMockWebAuthenticationConfiguration({ silentFailure: true, local: { userVerification: "yes", acceptAttestation: false, privateKeyBase64: privateKeyBase64 } });
- return promiseRejects(t, "NotAllowedError", navigator.credentials.create(options), "Operation timed out.").then(() => {
- if (window.testRunner)
- testRunner.cleanUpKeychain(testRpId, credentialIDBase64);
- });
- }, "PublicKeyCredential's [[create]] without attestation in a mock local authenticator.");
</script>
Modified: trunk/LayoutTests/http/wpt/webauthn/public-key-credential-create-failure-local.https-expected.txt (290750 => 290751)
--- trunk/LayoutTests/http/wpt/webauthn/public-key-credential-create-failure-local.https-expected.txt 2022-03-02 20:59:53 UTC (rev 290750)
+++ trunk/LayoutTests/http/wpt/webauthn/public-key-credential-create-failure-local.https-expected.txt 2022-03-02 21:04:20 UTC (rev 290751)
@@ -12,7 +12,6 @@
PASS PublicKeyCredential's [[create]] with matched exclude credentials in a mock local authenticator. 2nd
PASS PublicKeyCredential's [[create]] without user consent in a mock local authenticator.
PASS PublicKeyCredential's [[create]] without private keys in a mock local authenticator.
-PASS PublicKeyCredential's [[create]] without attestation in a mock local authenticator.
PASS PublicKeyCredential's [[create]] not deleting old credential in a mock local authenticator.
PASS PublicKeyCredential's [[create]] with timeout in a mock local authenticator.
PASS PublicKeyCredential's [[create]] with user cancel in a mock local authenticator.
Modified: trunk/LayoutTests/http/wpt/webauthn/public-key-credential-create-failure-local.https.html (290750 => 290751)
--- trunk/LayoutTests/http/wpt/webauthn/public-key-credential-create-failure-local.https.html 2022-03-02 20:59:53 UTC (rev 290750)
+++ trunk/LayoutTests/http/wpt/webauthn/public-key-credential-create-failure-local.https.html 2022-03-02 21:04:20 UTC (rev 290751)
@@ -136,34 +136,6 @@
name: "example.com"
},
user: {
- name: "John Appleseed",
- id: Base64URL.parse(testUserhandleBase64),
- displayName: "John",
- },
- challenge: asciiToUint8Array("123456"),
- pubKeyCredParams: [{ type: "public-key", alg: -7 }],
- attestation: "direct"
- }
- };
- if (window.internals)
- internals.setMockWebAuthenticationConfiguration({ local: { userVerification: "yes", acceptAttestation: false, privateKeyBase64: privateKeyBase64 } });
- return promiseRejects(t, "UnknownError", navigator.credentials.create(options), "Couldn't attest: The operation couldn't complete.").then(() => {
- if (window.testRunner)
- testRunner.cleanUpKeychain(testRpId, credentialIDBase64);
- });
- }, "PublicKeyCredential's [[create]] without attestation in a mock local authenticator.");
-
- promise_test(async t => {
- const privateKeyBase64 = await generatePrivateKeyBase64();
- const credentialID = await calculateCredentialID(privateKeyBase64);
- const credentialIDBase64 = base64encode(credentialID);
-
- const options = {
- publicKey: {
- rp: {
- name: "example.com"
- },
- user: {
name: testUserhandleBase64,
id: Base64URL.parse(testUserhandleBase64),
displayName: "John",