style: Add a Show Password button to <input type=password> controls

It's controlled by the pref:
layout.forms.input-type-show-password-button.enabled

Differential Revision: https://phabricator.services.mozilla.com/D130407
This commit is contained in:
Emilio Cobos Álvarez 2023-06-06 13:04:11 +02:00 committed by Oriol Brufau
parent b08701529f
commit 09a0edefb8
3 changed files with 9 additions and 0 deletions

View file

@ -125,6 +125,11 @@ bitflags! {
const IN_DEVTOOLS_HIGHLIGHTED_STATE = 1 << 45;
/// Used for the devtools style editor. Probably should go away.
const IN_STYLEEDITOR_TRANSITIONING_STATE = 1 << 46;
/// For :-moz-value-empty (to show widgets like the reveal password
/// button or the clear button).
const IN_VALUE_EMPTY_STATE = 1 << 47;
/// For :-moz-revealed.
const IN_REVEALED_STATE = 1 << 48;
}
}