Bug 1304001 - Update comments related to gEnabled/rememberSignons. r=sfoster
Fixes some stales comments and identation. Differential Revision: https://phabricator.services.mozilla.com/D20392
This commit is contained in:
@@ -718,8 +718,9 @@ nsContextMenu.prototype = {
|
||||
// don't want to show the form fill option.
|
||||
let showFill = loginFillInfo && loginFillInfo.passwordField.found;
|
||||
|
||||
// Disable the fill option if the user has set a master password
|
||||
// Disable the fill option if the user hasn't unlocked with their master password
|
||||
// or if the password field or target field are disabled.
|
||||
// XXX: Bug 1529025 to respect signon.rememberSignons
|
||||
let disableFill = !loginFillInfo ||
|
||||
!Services.logins ||
|
||||
!Services.logins.isLoggedIn ||
|
||||
|
||||
@@ -157,8 +157,10 @@ var LoginManagerContent = {
|
||||
.getService(Ci.nsIUUIDGenerator).generateUUID().toString();
|
||||
},
|
||||
|
||||
_messages: [ "RemoteLogins:loginsFound",
|
||||
"RemoteLogins:loginsAutoCompleted" ],
|
||||
_messages: [
|
||||
"RemoteLogins:loginsFound",
|
||||
"RemoteLogins:loginsAutoCompleted",
|
||||
],
|
||||
|
||||
/**
|
||||
* WeakMap of the root element of a FormLike to the FormLike representing its fields.
|
||||
@@ -928,7 +930,7 @@ var LoginManagerContent = {
|
||||
return;
|
||||
}
|
||||
|
||||
// If password saving is disabled (globally or for host), bail out now.
|
||||
// If password saving is disabled globally, bail out now.
|
||||
if (!LoginHelper.enabled) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user