diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:47:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:47:29 +0000 |
commit | 0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d (patch) | |
tree | a31f07c9bcca9d56ce61e9a1ffd30ef350d513aa /testing/web-platform/meta/webauthn | |
parent | Initial commit. (diff) | |
download | firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.tar.xz firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.zip |
Adding upstream version 115.8.0esr.upstream/115.8.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/meta/webauthn')
16 files changed, 617 insertions, 0 deletions
diff --git a/testing/web-platform/meta/webauthn/__dir__.ini b/testing/web-platform/meta/webauthn/__dir__.ini new file mode 100644 index 0000000000..f46a5a1606 --- /dev/null +++ b/testing/web-platform/meta/webauthn/__dir__.ini @@ -0,0 +1,2 @@ +prefs: [security.webauth.webauthn:true, security.webauth.webauthn_enable_softtoken:true, security.webauth.webauthn_enable_android_fido2:false] +disabled: true diff --git a/testing/web-platform/meta/webauthn/createcredential-badargs-authnrselection.https.html.ini b/testing/web-platform/meta/webauthn/createcredential-badargs-authnrselection.https.html.ini new file mode 100644 index 0000000000..f5e791f803 --- /dev/null +++ b/testing/web-platform/meta/webauthn/createcredential-badargs-authnrselection.https.html.ini @@ -0,0 +1,72 @@ +[createcredential-badargs-authnrselection.https.html] + disabled: https://bugzilla.mozilla.org/show_bug.cgi?id=1546662 + expected: + TIMEOUT + [Bad AuthenticatorSelectionCriteria: authenticatorSelection is empty array] + expected: + if debug and (os == "win"): FAIL + TIMEOUT + + [Bad AuthenticatorSelectionCriteria: authenticatorSelection is null] + expected: + if debug and (os == "win"): FAIL + NOTRUN + + [Bad AuthenticatorSelectionCriteria: authenticatorSelection is empty string] + expected: + if debug and (os == "win"): PASS + NOTRUN + + [Bad AuthenticatorSelectionCriteria: authenticatorSelection is string] + expected: + if debug and (os == "win"): PASS + NOTRUN + + [Bad AuthenticatorSelectionCriteria: authenticatorSelection attachment is empty string] + expected: + if debug and (os == "win"): PASS + NOTRUN + + [Bad AuthenticatorSelectionCriteria: authenticatorSelection attachment is empty object] + expected: + if debug and (os == "win"): PASS + NOTRUN + + [Bad AuthenticatorSelectionCriteria: authenticatorSelection attachment is null] + expected: + if debug and (os == "win"): PASS + NOTRUN + + [Bad AuthenticatorSelectionCriteria: authenticatorSelection attachment platform] + expected: + if debug and (os == "win"): PASS + NOTRUN + + [Bad AuthenticatorSelectionCriteria: authenticatorSelection residentKey true] + expected: + NOTRUN + + [Bad AuthenticatorSelectionCriteria: authenticatorSelection residentKey is string] + expected: + NOTRUN + + [Bad AuthenticatorSelectionCriteria: authenticatorSelection userVerification empty string] + expected: + NOTRUN + + [Bad AuthenticatorSelectionCriteria: authenticatorSelection userVerification empty object] + expected: + NOTRUN + + [Bad AuthenticatorSelectionCriteria: authenticatorSelection userVerification bad value] + expected: + NOTRUN + + [Bad AuthenticatorSelectionCriteria: authenticatorSelection userVerification null] + expected: + NOTRUN + + [Bad AuthenticatorSelectionCriteria: authenticatorSelection userVerification required] + expected: + NOTRUN + diff --git a/testing/web-platform/meta/webauthn/createcredential-badargs-rp.https.html.ini b/testing/web-platform/meta/webauthn/createcredential-badargs-rp.https.html.ini new file mode 100644 index 0000000000..687e8da0c7 --- /dev/null +++ b/testing/web-platform/meta/webauthn/createcredential-badargs-rp.https.html.ini @@ -0,0 +1,41 @@ +[createcredential-badargs-rp.https.html] + disabled: https://bugzilla.mozilla.org/show_bug.cgi?id=1546662 + expected: + TIMEOUT + [Bad rp: id is object] + expected: FAIL + + [Bad rp: name is object] + expected: + if debug and (os == "win"): FAIL + TIMEOUT + + [Bad rp: name is null] + expected: + if debug and (os == "win"): FAIL + NOTRUN + + [Bad rp: name is empty String] + expected: + if debug and (os == "win"): TIMEOUT + NOTRUN + + [Bad rp: icon is object] + expected: + NOTRUN + + [Bad rp: icon is null] + expected: + NOTRUN + + [Bad rp: icon is empty String] + expected: + NOTRUN + + [Bad rp: icon is insecure] + expected: + NOTRUN + + [Bad rp: rp null] + expected: FAIL + diff --git a/testing/web-platform/meta/webauthn/createcredential-excludecredentials.https.html.ini b/testing/web-platform/meta/webauthn/createcredential-excludecredentials.https.html.ini new file mode 100644 index 0000000000..146e1a5e07 --- /dev/null +++ b/testing/web-platform/meta/webauthn/createcredential-excludecredentials.https.html.ini @@ -0,0 +1,23 @@ +[createcredential-excludecredentials.https.html] + disabled: https://bugzilla.mozilla.org/show_bug.cgi?id=1546662 + expected: + TIMEOUT + [excludeCredentials missing] + expected: + if debug and (os == "win"): FAIL + TIMEOUT + + [excludeCredentials empty array] + expected: + if debug and (os == "win"): FAIL + NOTRUN + + [exclude existing credential] + expected: + if debug and (os == "win"): TIMEOUT + NOTRUN + + [exclude random (non-existing) credential] + expected: + NOTRUN + diff --git a/testing/web-platform/meta/webauthn/createcredential-extensions.https.html.ini b/testing/web-platform/meta/webauthn/createcredential-extensions.https.html.ini new file mode 100644 index 0000000000..3e7cf42e41 --- /dev/null +++ b/testing/web-platform/meta/webauthn/createcredential-extensions.https.html.ini @@ -0,0 +1,47 @@ +[createcredential-extensions.https.html] + disabled: https://bugzilla.mozilla.org/show_bug.cgi?id=1546662 + expected: + TIMEOUT + [Bad extensions: extensions is null] + expected: + if debug and (os == "win"): FAIL + TIMEOUT + + [Bad extensions: extensions is empty Array] + expected: + if debug and (os == "win"): FAIL + NOTRUN + + [Bad extensions: extensions is empty ArrayBuffer] + expected: + if debug and (os == "win"): TIMEOUT + NOTRUN + + [Bad extensions: malformatted JSON] + expected: + NOTRUN + + [Bad extensions: JavaScript object] + expected: + NOTRUN + + [Bad extensions: extension ID too long] + expected: + NOTRUN + + [extensions is a nonsensical JSON string] + expected: + NOTRUN + + [empty appid in create request] + expected: + NOTRUN + + [null appid in create request] + expected: + NOTRUN + + [appid in create request] + expected: + NOTRUN + diff --git a/testing/web-platform/meta/webauthn/createcredential-passing.https.html.ini b/testing/web-platform/meta/webauthn/createcredential-passing.https.html.ini new file mode 100644 index 0000000000..42acd23c2c --- /dev/null +++ b/testing/web-platform/meta/webauthn/createcredential-passing.https.html.ini @@ -0,0 +1,158 @@ +[createcredential-passing.https.html] + disabled: https://bugzilla.mozilla.org/show_bug.cgi?id=1546662 + expected: TIMEOUT + [WebAuthn credential.create() Passing Tests] + expected: TIMEOUT + + [passing credentials.create() with default arguments] + expected: + if debug and (os == "win"): FAIL + TIMEOUT + + [passing credentials.create() with rpId (host and port)] + expected: + if debug and (os == "win"): FAIL + NOTRUN + + [passing credentials.create() with rpId (hostname)] + expected: + if debug and (os == "win"): FAIL + NOTRUN + + [passing credentials.create() without rp.icon] + expected: + if debug and (os == "win"): TIMEOUT + NOTRUN + + [very short user id] + expected: + NOTRUN + + [max length user id] + expected: + NOTRUN + + [Uint8Array user id] + expected: + NOTRUN + + [Int8Array user id] + expected: + NOTRUN + + [Int16Array user id] + expected: + NOTRUN + + [Int32Array user id] + expected: + NOTRUN + + [Float32Array user id] + expected: + NOTRUN + + [DataView user id] + expected: + NOTRUN + + [passing credentials.create() without user.icon] + expected: + NOTRUN + + [Int16Array challenge] + expected: + NOTRUN + + [Int32Array challenge] + expected: + NOTRUN + + [Float32Array challenge] + expected: + NOTRUN + + [Float64Array challenge] + expected: + NOTRUN + + [DataView challenge] + expected: + NOTRUN + + [Absurdly large challenge] + expected: + NOTRUN + + [Bad pubKeyCredParams: pubKeyCredParams is empty Array] + expected: + NOTRUN + + [EC256 pubKeyCredParams] + expected: + NOTRUN + + [SelectEC256 pubKeyCredParams from a list] + expected: + NOTRUN + + [passing credentials.create() with no timeout] + expected: + NOTRUN + + [authenticatorSelection is undefined] + expected: + NOTRUN + + [authenticatorSelection is empty object] + expected: + NOTRUN + + [authenticatorSelection default values] + expected: + NOTRUN + + [authenticatorSelection attachment undefined] + expected: + NOTRUN + + [authenticatorSelection residentKey undefined] + expected: + NOTRUN + + [authenticatorSelection residentKey false] + expected: + NOTRUN + + [authenticatorSelection userVerification undefined] + expected: + NOTRUN + + [authenticatorSelection userVerification discouraged] + expected: + NOTRUN + + [attestation parameter: attestation is "none"] + expected: + NOTRUN + + [attestation parameter: attestation is "indirect"] + expected: + NOTRUN + + [attestation parameter: attestation is "direct"] + expected: + NOTRUN + + [attestation parameter: attestation is undefined] + expected: NOTRUN + + [extensions undefined] + expected: NOTRUN + + [extensions are empty object] + expected: NOTRUN + + [extensions are dict of empty strings] + expected: NOTRUN + diff --git a/testing/web-platform/meta/webauthn/createcredential-pubkeycredparams.https.html.ini b/testing/web-platform/meta/webauthn/createcredential-pubkeycredparams.https.html.ini new file mode 100644 index 0000000000..04afecd807 --- /dev/null +++ b/testing/web-platform/meta/webauthn/createcredential-pubkeycredparams.https.html.ini @@ -0,0 +1,9 @@ +[createcredential-pubkeycredparams.https.html] + [Bad pubKeyCredParams: first param has bad alg (0)] + expected: + FAIL + + [Bad pubKeyCredParams: first param has bad alg (42)] + expected: + FAIL + diff --git a/testing/web-platform/meta/webauthn/createcredential-timeout.https.html.ini b/testing/web-platform/meta/webauthn/createcredential-timeout.https.html.ini new file mode 100644 index 0000000000..1beedb9d24 --- /dev/null +++ b/testing/web-platform/meta/webauthn/createcredential-timeout.https.html.ini @@ -0,0 +1,5 @@ +[createcredential-timeout.https.html] + [ensure create credential times out] + expected: + if os == "android": FAIL + diff --git a/testing/web-platform/meta/webauthn/getcredential-badargs-rpid.https.html.ini b/testing/web-platform/meta/webauthn/getcredential-badargs-rpid.https.html.ini new file mode 100644 index 0000000000..a3f3ee3508 --- /dev/null +++ b/testing/web-platform/meta/webauthn/getcredential-badargs-rpid.https.html.ini @@ -0,0 +1,30 @@ +[getcredential-badargs-rpid.https.html] + disabled: https://bugzilla.mozilla.org/show_bug.cgi?id=1546662 + expected: + if debug and (os == "win"): OK + TIMEOUT + [Bad rpId: empty string] + expected: + if debug and (os == "win"): FAIL + TIMEOUT + + [Bad rpId: null] + expected: + if debug and (os == "win"): FAIL + NOTRUN + + [Bad rpId: invalid domain (has space)] + expected: + if debug and (os == "win"): FAIL + NOTRUN + + [Bad rpId: invalid domain (starts with dash)] + expected: + if debug and (os == "win"): FAIL + NOTRUN + + [Bad rpId: invalid domain (starts with number)] + expected: + if debug and (os == "win"): FAIL + NOTRUN + diff --git a/testing/web-platform/meta/webauthn/getcredential-badargs-userverification.https.html.ini b/testing/web-platform/meta/webauthn/getcredential-badargs-userverification.https.html.ini new file mode 100644 index 0000000000..18cb887b15 --- /dev/null +++ b/testing/web-platform/meta/webauthn/getcredential-badargs-userverification.https.html.ini @@ -0,0 +1,30 @@ +[getcredential-badargs-userverification.https.html] + disabled: https://bugzilla.mozilla.org/show_bug.cgi?id=1546662 + expected: + if debug and (os == "win"): OK + TIMEOUT + [Bad userVerification: empty string] + expected: + if debug and (os == "win"): FAIL + TIMEOUT + + [Bad userVerification: empty object] + expected: + if debug and (os == "win"): FAIL + NOTRUN + + [Bad userVerification: bad value] + expected: + if debug and (os == "win"): FAIL + NOTRUN + + [Bad userVerification: null] + expected: + if debug and (os == "win"): FAIL + NOTRUN + + [Bad userVerification: "required"] + expected: + if debug and (os == "win"): FAIL + NOTRUN + diff --git a/testing/web-platform/meta/webauthn/getcredential-extensions.https.html.ini b/testing/web-platform/meta/webauthn/getcredential-extensions.https.html.ini new file mode 100644 index 0000000000..399f6fd218 --- /dev/null +++ b/testing/web-platform/meta/webauthn/getcredential-extensions.https.html.ini @@ -0,0 +1,45 @@ +[getcredential-extensions.https.html] + disabled: https://bugzilla.mozilla.org/show_bug.cgi?id=1546662 + expected: + if debug and (os == "win"): OK + TIMEOUT + [Bad extensions: extensions is string] + expected: + if debug and (os == "win"): FAIL + TIMEOUT + + [Bad extensions: extensions is null] + expected: + if debug and (os == "win"): FAIL + NOTRUN + + [Bad extensions: extensions is empty Array] + expected: + if debug and (os == "win"): FAIL + NOTRUN + + [Bad extensions: extensions is empty ArrayBuffer] + expected: + if debug and (os == "win"): FAIL + NOTRUN + + [Bad extensions: malformatted JSON] + expected: + if debug and (os == "win"): FAIL + NOTRUN + + [Bad extensions: JavaScript object] + expected: + if debug and (os == "win"): FAIL + NOTRUN + + [Bad extensions: extension ID too long] + expected: + if debug and (os == "win"): FAIL + NOTRUN + + [extensions is a nonsensical JSON string] + expected: + if debug and (os == "win"): FAIL + NOTRUN + diff --git a/testing/web-platform/meta/webauthn/getcredential-passing.https.html.ini b/testing/web-platform/meta/webauthn/getcredential-passing.https.html.ini new file mode 100644 index 0000000000..6151e9bb21 --- /dev/null +++ b/testing/web-platform/meta/webauthn/getcredential-passing.https.html.ini @@ -0,0 +1,65 @@ +[getcredential-passing.https.html] + disabled: https://bugzilla.mozilla.org/show_bug.cgi?id=1546662 + expected: + if debug and (os == "win"): OK + TIMEOUT + [passing credentials.get() with default args] + expected: + if debug and (os == "win"): FAIL + TIMEOUT + + [passing credentials.create() with no timeout] + expected: + if debug and (os == "win"): FAIL + NOTRUN + + [rpId undefined] + expected: + if debug and (os == "win"): FAIL + NOTRUN + + [passing credentials.get() with rpId (host and port)] + expected: + if debug and (os == "win"): FAIL + NOTRUN + + [passing credentials.get() with rpId (hostname)] + expected: + if debug and (os == "win"): FAIL + NOTRUN + + [no credential specified] + expected: + if debug and (os == "win"): FAIL + NOTRUN + + [authenticatorSelection userVerification undefined] + expected: + if debug and (os == "win"): FAIL + NOTRUN + + [authenticatorSelection userVerification preferred] + expected: + if debug and (os == "win"): FAIL + NOTRUN + + [authenticatorSelection userVerification discouraged] + expected: + if debug and (os == "win"): FAIL + NOTRUN + + [extensions undefined] + expected: + if debug and (os == "win"): FAIL + NOTRUN + + [extensions are empty object] + expected: + if debug and (os == "win"): FAIL + NOTRUN + + [extensions are dict of empty strings] + expected: + if debug and (os == "win"): FAIL + NOTRUN + diff --git a/testing/web-platform/meta/webauthn/getcredential-rk-passing.https.html.ini b/testing/web-platform/meta/webauthn/getcredential-rk-passing.https.html.ini new file mode 100644 index 0000000000..108b5a0dd7 --- /dev/null +++ b/testing/web-platform/meta/webauthn/getcredential-rk-passing.https.html.ini @@ -0,0 +1,19 @@ +[getcredential-rk-passing.https.html] + expected: + if not debug and (os == "linux"): TIMEOUT + if not debug and (os == "win"): TIMEOUT + [empty allowCredentials] + expected: + if ccov and (os == "win"): FAIL + if not debug and (os == "linux"): TIMEOUT + if not debug and (os == "win"): TIMEOUT + FAIL + + [undefined allowCredentials] + expected: + if ccov and (os == "win"): FAIL + if not debug and (os == "linux"): NOTRUN + if not debug and (os == "win"): NOTRUN + if not debug and (os == "mac"): ["NOTRUN", "FAIL"] + FAIL + diff --git a/testing/web-platform/meta/webauthn/getcredential-timeout.https.html.ini b/testing/web-platform/meta/webauthn/getcredential-timeout.https.html.ini new file mode 100644 index 0000000000..2caae81c90 --- /dev/null +++ b/testing/web-platform/meta/webauthn/getcredential-timeout.https.html.ini @@ -0,0 +1,10 @@ +[getcredential-timeout.https.html] + disabled: https://bugzilla.mozilla.org/show_bug.cgi?id=1546662 + expected: + if debug and (os == "win"): OK + TIMEOUT + [ensure create credential times out] + expected: + if debug and (os == "win"): FAIL + TIMEOUT + diff --git a/testing/web-platform/meta/webauthn/idlharness.https.window.js.ini b/testing/web-platform/meta/webauthn/idlharness.https.window.js.ini new file mode 100644 index 0000000000..e2f1d63530 --- /dev/null +++ b/testing/web-platform/meta/webauthn/idlharness.https.window.js.ini @@ -0,0 +1,39 @@ +[idlharness.https.window.html] + disabled: Bug 1477138 + + [AuthenticatorResponse interface: assertionResponse must inherit property "clientDataJSON" with the proper type] + expected: FAIL + + [AuthenticatorAssertionResponse must be primary interface of assertionResponse] + expected: FAIL + + [Stringification of assertionResponse] + expected: FAIL + + [AuthenticatorAssertionResponse interface: assertionResponse must inherit property "signature" with the proper type] + expected: FAIL + + [PublicKeyCredential must be primary interface of cred] + expected: FAIL + + [AuthenticatorAssertionResponse interface: assertionResponse must inherit property "userHandle" with the proper type] + expected: FAIL + + [PublicKeyCredential interface: cred must inherit property "response" with the proper type] + expected: FAIL + + [PublicKeyCredential interface: cred must inherit property "getClientExtensionResults()" with the proper type] + expected: FAIL + + [Stringification of cred] + expected: FAIL + + [PublicKeyCredential interface: cred must inherit property "rawId" with the proper type] + expected: FAIL + + [PublicKeyCredential interface: cred must inherit property "isUserVerifyingPlatformAuthenticatorAvailable()" with the proper type] + expected: FAIL + + [AuthenticatorAssertionResponse interface: assertionResponse must inherit property "authenticatorData" with the proper type] + expected: FAIL + diff --git a/testing/web-platform/meta/webauthn/webauthn-testdriver-basic.https.html.ini b/testing/web-platform/meta/webauthn/webauthn-testdriver-basic.https.html.ini new file mode 100644 index 0000000000..b922bf8786 --- /dev/null +++ b/testing/web-platform/meta/webauthn/webauthn-testdriver-basic.https.html.ini @@ -0,0 +1,22 @@ +[webauthn-testdriver-basic.https.html] + expected: + if os == "android": OK + TIMEOUT + [Get an assertion] + expected: + if os == "android": PASS + NOTRUN + + [Create a credential] + expected: + if os == "android": PASS + TIMEOUT + + [Set up the test environment] + expected: FAIL + + [Clean up the test environment] + expected: + if os == "android": FAIL + NOTRUN + |