Enable credential management wpt tests (#39327)

Enabling them early to prevent intermittent failures.


Fixes: Partially #38788

Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
This commit is contained in:
Ashwin Naren 2025-09-20 00:24:32 -07:00 committed by GitHub
parent 8a59c2cf56
commit 8c45428760
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 191 additions and 0 deletions

View file

@ -21,6 +21,8 @@ skip: true
skip: true
[cors]
skip: false
[credential-management]
skip: false
[css]
skip: false
[css-anchor-position]

View file

@ -1,5 +1,6 @@
prefs: [
"dom_adoptedstylesheet_enabled:true",
"dom_credential_management_enabled:true",
"dom_indexeddb_enabled:true",
"dom_serviceworker_enabled:true",
"dom_testutils_enabled:true",

View file

@ -0,0 +1,30 @@
[credentialscontainer-create-basics.https.html]
[navigator.credentials.create() with valid PasswordCredentialData]
expected: FAIL
[navigator.credentials.create() with valid HTMLFormElement]
expected: FAIL
[navigator.credentials.create() with valid FederatedCredentialData]
expected: FAIL
[navigator.credentials.create() with bogus federated data]
expected: FAIL
[navigator.credentials.create() with bogus publicKey data]
expected: FAIL
[navigator.credentials.create() with both PasswordCredentialData and FederatedCredentialData]
expected: FAIL
[navigator.credentials.create() with bogus federated and publicKey data]
expected: FAIL
[navigator.credentials.create() aborted with custom reason]
expected: FAIL
[navigator.credentials.create() aborted with different objects]
expected: FAIL
[navigator.credentials.create() rejects when aborted after the promise creation]
expected: FAIL

View file

@ -0,0 +1,3 @@
[credentialscontainer-frame-basics.https.html]
[navigator.credentials should be undefined in documents generated from `data:` URLs.]
expected: FAIL

View file

@ -0,0 +1,12 @@
[credentialscontainer-get-basics.https.html]
[Calling navigator.credentials.get() without a valid matching interface.]
expected: FAIL
[navigator.credentials.get() aborted with custom reason]
expected: FAIL
[navigator.credentials.get() aborted with different objects]
expected: FAIL
[navigator.credentials.get() rejects when aborted after the promise creation]
expected: FAIL

View file

@ -0,0 +1,3 @@
[credentialscontainer-prevent-silent-access.https.html]
[navigator.credentials.preventSilentAccess() resolves with undefined.]
expected: FAIL

View file

@ -0,0 +1,2 @@
[federatedcredential-framed-get.sub.https.html]
expected: ERROR

View file

@ -0,0 +1,93 @@
[idlharness.https.window.html]
[PasswordCredential interface: attribute name]
expected: FAIL
[PasswordCredential interface: attribute iconURL]
expected: FAIL
[PasswordCredential must be primary interface of passwordCredential]
expected: FAIL
[Stringification of passwordCredential]
expected: FAIL
[PasswordCredential interface: passwordCredential must inherit property "password" with the proper type]
expected: FAIL
[PasswordCredential interface: passwordCredential must inherit property "name" with the proper type]
expected: FAIL
[PasswordCredential interface: passwordCredential must inherit property "iconURL" with the proper type]
expected: FAIL
[Credential interface: passwordCredential must inherit property "id" with the proper type]
expected: FAIL
[Credential interface: passwordCredential must inherit property "type" with the proper type]
expected: FAIL
[Credential interface: passwordCredential must inherit property "isConditionalMediationAvailable()" with the proper type]
expected: FAIL
[Credential interface: passwordCredential must inherit property "willRequestConditionalCreation()" with the proper type]
expected: FAIL
[FederatedCredential interface: existence and properties of interface object]
expected: FAIL
[FederatedCredential interface object length]
expected: FAIL
[FederatedCredential interface object name]
expected: FAIL
[FederatedCredential interface: existence and properties of interface prototype object]
expected: FAIL
[FederatedCredential interface: existence and properties of interface prototype object's "constructor" property]
expected: FAIL
[FederatedCredential interface: existence and properties of interface prototype object's @@unscopables property]
expected: FAIL
[FederatedCredential interface: attribute provider]
expected: FAIL
[FederatedCredential interface: attribute protocol]
expected: FAIL
[FederatedCredential interface: attribute name]
expected: FAIL
[FederatedCredential interface: attribute iconURL]
expected: FAIL
[FederatedCredential must be primary interface of federatedCredential]
expected: FAIL
[Stringification of federatedCredential]
expected: FAIL
[FederatedCredential interface: federatedCredential must inherit property "provider" with the proper type]
expected: FAIL
[FederatedCredential interface: federatedCredential must inherit property "protocol" with the proper type]
expected: FAIL
[FederatedCredential interface: federatedCredential must inherit property "name" with the proper type]
expected: FAIL
[FederatedCredential interface: federatedCredential must inherit property "iconURL" with the proper type]
expected: FAIL
[Credential interface: federatedCredential must inherit property "id" with the proper type]
expected: FAIL
[Credential interface: federatedCredential must inherit property "type" with the proper type]
expected: FAIL
[Credential interface: federatedCredential must inherit property "isConditionalMediationAvailable()" with the proper type]
expected: FAIL
[Credential interface: federatedCredential must inherit property "willRequestConditionalCreation()" with the proper type]
expected: FAIL

View file

@ -0,0 +1,18 @@
[otpcredential-get-basics.https.html]
[Basic usage]
expected: FAIL
[Handle multiple requests in different order.]
expected: FAIL
[Handle multiple requests with success and error.]
expected: FAIL
[Deal with cancelled requests]
expected: FAIL
[Should abort request]
expected: FAIL
[Should abort request with reason]
expected: FAIL

View file

@ -0,0 +1,9 @@
[otpcredential-iframe.https.html]
[Test OTPCredential enabled in same origin iframes]
expected: FAIL
[OTPCredential enabled in cross origin iframes with permissions policy]
expected: FAIL
[OTPCredential disabled in cross origin iframes without permissions policy]
expected: FAIL

View file

@ -0,0 +1,3 @@
[otpcredential-store.https.html]
[navigator.credentials.store() with an otp credential returns NotSupportedError]
expected: FAIL

View file

@ -0,0 +1,15 @@
[passwordcredential-framed-get.sub.https.html]
[Cross-origin IFrame throws 'NotAllowedError'.]
expected: FAIL
[Same-origin IFrame in same-origin IFrame does not throw.]
expected: FAIL
[Same-origin IFrame in same-origin IFrame throws 'NotAllowedError'.]
expected: FAIL
[Cross-origin IFrame in same-origin IFrame throws 'NotAllowedError'.]
expected: FAIL
[Cross-origin IFrame in same-cross-origin throws 'NotAllowedError'.]
expected: FAIL