Bug 1750072 - Allow to prevent password revealing/unrevealing. r=mtigley

The idea is that chrome code would be able to call preventDefault(),
then run primary password authentication when needed, then setRevealPassword
again.

Differential Revision: https://phabricator.services.mozilla.com/D173491
This commit is contained in:
Emilio Cobos Álvarez
2023-03-27 23:30:33 +00:00
parent 4118c1c5ca
commit 18811e46d5
2 changed files with 15 additions and 1 deletions

View File

@@ -247,7 +247,7 @@ class HTMLInputElement final : public TextControlElement,
MOZ_CAN_RUN_SCRIPT nsresult
SetValueFromSetRangeText(const nsAString& aValue) override;
bool HasCachedSelection() override;
void SetRevealPassword(bool aValue);
MOZ_CAN_RUN_SCRIPT void SetRevealPassword(bool aValue);
bool RevealPassword() const;
/**