Commit cdc7c1a8 authored by Gurzau Raul's avatar Gurzau Raul
Browse files

Backed out changeset 479097530e46 (bug 1586913) for failing at...

Backed out changeset 479097530e46 (bug 1586913) for failing at test_login_item.html on a CLOSED TREE.
parent 99a0148a
...@@ -69,7 +69,6 @@ class AboutLoginsChild extends ActorChild { ...@@ -69,7 +69,6 @@ class AboutLoginsChild extends ActorChild {
}, },
// Default to enabled just in case a search is attempted before we get a response. // Default to enabled just in case a search is attempted before we get a response.
masterPasswordEnabled: true, masterPasswordEnabled: true,
passwordRevealVisible: true,
}; };
waivedContent.AboutLoginsUtils = Cu.cloneInto( waivedContent.AboutLoginsUtils = Cu.cloneInto(
AboutLoginsUtils, AboutLoginsUtils,
...@@ -227,8 +226,6 @@ class AboutLoginsChild extends ActorChild { ...@@ -227,8 +226,6 @@ class AboutLoginsChild extends ActorChild {
this.sendToContent("Setup", message.data); this.sendToContent("Setup", message.data);
Cu.waiveXrays(this.content).AboutLoginsUtils.masterPasswordEnabled = Cu.waiveXrays(this.content).AboutLoginsUtils.masterPasswordEnabled =
message.data.masterPasswordEnabled; message.data.masterPasswordEnabled;
Cu.waiveXrays(this.content).AboutLoginsUtils.passwordRevealVisible =
message.data.passwordRevealVisible;
break; break;
case "AboutLogins:ShowLoginItemError": case "AboutLogins:ShowLoginItemError":
this.sendToContent("ShowLoginItemError", message.data); this.sendToContent("ShowLoginItemError", message.data);
......
...@@ -411,9 +411,6 @@ var AboutLoginsParent = { ...@@ -411,9 +411,6 @@ var AboutLoginsParent = {
syncState, syncState,
selectedBadgeLanguages, selectedBadgeLanguages,
masterPasswordEnabled: LoginHelper.isMasterPasswordSet(), masterPasswordEnabled: LoginHelper.isMasterPasswordSet(),
passwordRevealVisible: Services.policies.isAllowed(
"passwordReveal"
),
}); });
await this._sendAllLoginRelatedObjects(logins, messageManager); await this._sendAllLoginRelatedObjects(logins, messageManager);
......
...@@ -727,14 +727,6 @@ export default class LoginItem extends HTMLElement { ...@@ -727,14 +727,6 @@ export default class LoginItem extends HTMLElement {
} }
_updatePasswordRevealState() { _updatePasswordRevealState() {
if (
window.AboutLoginsUtils &&
!window.AboutLoginsUtils.passwordRevealVisible
) {
this._revealCheckbox.hidden = true;
return;
}
let titleId = this._revealCheckbox.checked let titleId = this._revealCheckbox.checked
? "login-item-password-reveal-checkbox-hide" ? "login-item-password-reveal-checkbox-hide"
: "login-item-password-reveal-checkbox-show"; : "login-item-password-reveal-checkbox-show";
......
...@@ -450,14 +450,6 @@ var Policies = { ...@@ -450,14 +450,6 @@ var Policies = {
}, },
}, },
DisablePasswordReveal: {
onBeforeUIStartup(manager, param) {
if (param) {
manager.disallowFeature("passwordReveal");
}
},
},
DisablePocket: { DisablePocket: {
onBeforeAddons(manager, param) { onBeforeAddons(manager, param) {
if (param) { if (param) {
......
...@@ -211,10 +211,6 @@ ...@@ -211,10 +211,6 @@
"type": "boolean" "type": "boolean"
}, },
"DisablePasswordReveal": {
"type": "boolean"
},
"DisablePocket": { "DisablePocket": {
"type": "boolean" "type": "boolean"
}, },
......
...@@ -54,8 +54,6 @@ policy-DisableFormHistory = Don’t remember search and form history. ...@@ -54,8 +54,6 @@ policy-DisableFormHistory = Don’t remember search and form history.
policy-DisableMasterPasswordCreation = If true, a master password can’t be created. policy-DisableMasterPasswordCreation = If true, a master password can’t be created.
policy-DisablePasswordReveal = Do not allow passwords to be revealed in saved logins.
policy-DisablePocket = Disable the feature to save webpages to Pocket. policy-DisablePocket = Disable the feature to save webpages to Pocket.
policy-DisablePrivateBrowsing = Disable Private Browsing. policy-DisablePrivateBrowsing = Disable Private Browsing.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment