mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1183908 - Put password visibility toggling in the capture doorhanger behind the pref signon.rememberSignons.visibilityToggle. r=rittme
This commit is contained in:
parent
d98f969383
commit
76e8c07cd0
@ -3988,6 +3988,7 @@ pref("font.name.monospace.x-unicode", "dt-interface user-ucs2.cjk_japan-0");
|
||||
|
||||
// Login Manager prefs
|
||||
pref("signon.rememberSignons", true);
|
||||
pref("signon.rememberSignons.visibilityToggle", true);
|
||||
pref("signon.autofillForms", true);
|
||||
pref("signon.autologin.proxy", false);
|
||||
pref("signon.storeWhenAutocompleteOff", true);
|
||||
|
@ -857,7 +857,11 @@ LoginManagerPrompter.prototype = {
|
||||
// Ensure the type is reset so the field is masked.
|
||||
passwordField.setAttribute("type", "password");
|
||||
passwordField.setAttribute("value", login.password);
|
||||
if (Services.prefs.getBoolPref("signon.rememberSignons.visibilityToggle")) {
|
||||
passwordField.setAttribute("show-content", showPasswordPlaceholder);
|
||||
} else {
|
||||
passwordField.setAttribute("show-content", "");
|
||||
}
|
||||
updateButtonLabel();
|
||||
};
|
||||
|
||||
@ -988,8 +992,10 @@ LoginManagerPrompter.prototype = {
|
||||
.addEventListener("input", onInput);
|
||||
chromeDoc.getElementById("password-notification-password")
|
||||
.addEventListener("input", onInput);
|
||||
if (Services.prefs.getBoolPref("signon.rememberSignons.visibilityToggle")) {
|
||||
chromeDoc.getElementById("password-notification-password")
|
||||
.addEventListener("focus", onPasswordFocus);
|
||||
}
|
||||
chromeDoc.getElementById("password-notification-password")
|
||||
.addEventListener("blur", onPasswordBlur);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user