Files
ladybird/Libraries/LibWeb/CredentialManagement/PasswordCredential.idl
devgianlu fd80acd730 LibWeb: Specify why origin is missing from credentials IDL
The spec is outdated with respect to what is actually implemented
by browsers. Point to a PR that aims to update the spec.
2026-02-22 14:55:30 -05:00

29 lines
808 B
Plaintext

#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 password;
// We don't carry the "origin" field from the spec.
// https://github.com/w3c/webappsec-credential-management/pull/131
};
typedef (PasswordCredentialData or HTMLFormElement) PasswordCredentialInit;
partial dictionary CredentialCreationOptions {
PasswordCredentialInit password;
};