LibWeb: Stub for Credential Management API

Stub out basic Credential Management APIs and import IDL tests.

Spec: https://w3c.github.io/webappsec-credential-management/
This commit is contained in:
devgianlu 2025-01-30 22:29:26 +01:00 committed by Andrew Kaster
commit da9eaf8788
Notes: github-actions[bot] 2025-02-05 20:19:50 +00:00
20 changed files with 534 additions and 0 deletions

View file

@ -0,0 +1,26 @@
#import <CredentialManagement/Credential.idl>
[Exposed=Window, SecureContext]
interface PasswordCredential : Credential {
constructor(HTMLFormElement form);
constructor(PasswordCredentialData data);
readonly attribute USVString password;
};
PasswordCredential includes CredentialUserData;
partial dictionary CredentialRequestOptions {
boolean password = false;
};
dictionary PasswordCredentialData : CredentialData {
USVString name;
USVString iconURL;
required USVString origin;
required USVString password;
};
typedef (PasswordCredentialData or HTMLFormElement) PasswordCredentialInit;
partial dictionary CredentialCreationOptions {
PasswordCredentialInit password;
};