mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-01 16:02:53 +00:00
Stub out basic Credential Management APIs and import IDL tests. Spec: https://w3c.github.io/webappsec-credential-management/
24 lines
564 B
Text
24 lines
564 B
Text
[Exposed=Window, SecureContext]
|
|
interface Credential {
|
|
readonly attribute USVString id;
|
|
readonly attribute DOMString type;
|
|
static Promise<boolean> isConditionalMediationAvailable();
|
|
static Promise<undefined> willRequestConditionalCreation();
|
|
};
|
|
|
|
[SecureContext]
|
|
interface mixin CredentialUserData {
|
|
readonly attribute USVString name;
|
|
readonly attribute USVString iconURL;
|
|
};
|
|
|
|
dictionary CredentialData {
|
|
required USVString id;
|
|
};
|
|
|
|
enum CredentialMediationRequirement {
|
|
"silent",
|
|
"optional",
|
|
"conditional",
|
|
"required"
|
|
};
|