Skip to content

Commit

Permalink
LibWeb: Remove default value from CredentialRequestOptions.password
Browse files Browse the repository at this point in the history
This is probably a spec bug. If the property has a default value it will
always be populated in the `CredentialRequestOptions` dictionary making
that credential type always active.
  • Loading branch information
devgianlu committed Feb 8, 2025
1 parent eb1715b commit 4d140df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Libraries/LibWeb/CredentialManagement/PasswordCredential.idl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ interface PasswordCredential : Credential {
PasswordCredential includes CredentialUserData;

partial dictionary CredentialRequestOptions {
boolean password = false;
// FIXME: Spec bug?
// boolean password = false;
boolean password;
};

dictionary PasswordCredentialData : CredentialData {
Expand Down

0 comments on commit 4d140df

Please sign in to comment.