Skip to content

Commit

Permalink
Backed out changeset 7bcb681545cb (bug 1653584) for failures on test_…
Browse files Browse the repository at this point in the history
…sorted_alphabetically.js. CLOSED TREE
  • Loading branch information
ncsoregi committed Jul 17, 2020
1 parent 5676d0c commit e625ac5
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 20 deletions.
20 changes: 10 additions & 10 deletions browser/components/enterprisepolicies/Policies.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -1248,6 +1248,16 @@ var Policies = {
},
},

MasterPassword: {
onAllWindowsRestored(manager, param) {
if (param) {
manager.disallowFeature("removeMasterPassword");
} else {
manager.disallowFeature("createMasterPassword");
}
},
},

NetworkPrediction: {
onBeforeAddons(manager, param) {
setAndLockPref("network.dns.disablePrefetch", !param);
Expand Down Expand Up @@ -1429,16 +1439,6 @@ var Policies = {
},
},

PrimaryPassword: {
onAllWindowsRestored(manager, param) {
if (param) {
manager.disallowFeature("removeMasterPassword");
} else {
manager.disallowFeature("createMasterPassword");
}
},
},

PromptForDownloadLocation: {
onBeforeAddons(manager, param) {
setAndLockPref("browser.download.useDownloadDir", !param);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,6 @@ function generateDocumentation() {
Certificates: "CertificatesDescription",
SanitizeOnShutdown: "SanitizeOnShutdown2",
Permissions: "Permissions2",
PrimaryPassword: "MasterPassword",
};

for (let policyName in schema.properties) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,10 @@
}
},

"MasterPassword": {
"type": "boolean"
},

"NetworkPrediction": {
"type": "boolean"
},
Expand Down Expand Up @@ -852,10 +856,6 @@
}
},

"PrimaryPassword": {
"type": "boolean"
},

"PopupBlocking": {
"type": "object",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ let { LoginTestUtils } = ChromeUtils.import(
add_task(async function test_policy_masterpassword_set() {
await setupPolicyEngineWithJson({
policies: {
PrimaryPassword: true,
MasterPassword: true,
},
});

Expand All @@ -35,7 +35,7 @@ add_task(async function test_policy_masterpassword_set() {
add_task(async function test_policy_nochangemp() {
await setupPolicyEngineWithJson({
policies: {
PrimaryPassword: true,
MasterPassword: true,
},
});

Expand Down Expand Up @@ -73,7 +73,7 @@ add_task(async function test_policy_nochangemp() {
add_task(async function test_policy_admin() {
await setupPolicyEngineWithJson({
policies: {
PrimaryPassword: true,
MasterPassword: true,
},
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ChromeUtils.defineModuleGetter(
add_task(async function test_policy_admin() {
await setupPolicyEngineWithJson({
policies: {
PrimaryPassword: true,
MasterPassword: true,
},
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Services.scriptloader.loadSubScript(
add_task(async function test_policy_masterpassword_doorhanger() {
await setupPolicyEngineWithJson({
policies: {
PrimaryPassword: true,
MasterPassword: true,
},
});

Expand Down

0 comments on commit e625ac5

Please sign in to comment.