Backed out changeset 7bcb681545cb (bug 1653584) for failures on test_sorted_alphabetically.js. CLOSED TREE

This commit is contained in:
Csoregi Natalia 2020-07-17 18:37:48 +03:00
Родитель 5676d0c1ff
Коммит e625ac5a98
6 изменённых файлов: 19 добавлений и 20 удалений

Просмотреть файл

@ -1248,6 +1248,16 @@ var Policies = {
}, },
}, },
MasterPassword: {
onAllWindowsRestored(manager, param) {
if (param) {
manager.disallowFeature("removeMasterPassword");
} else {
manager.disallowFeature("createMasterPassword");
}
},
},
NetworkPrediction: { NetworkPrediction: {
onBeforeAddons(manager, param) { onBeforeAddons(manager, param) {
setAndLockPref("network.dns.disablePrefetch", !param); setAndLockPref("network.dns.disablePrefetch", !param);
@ -1429,16 +1439,6 @@ var Policies = {
}, },
}, },
PrimaryPassword: {
onAllWindowsRestored(manager, param) {
if (param) {
manager.disallowFeature("removeMasterPassword");
} else {
manager.disallowFeature("createMasterPassword");
}
},
},
PromptForDownloadLocation: { PromptForDownloadLocation: {
onBeforeAddons(manager, param) { onBeforeAddons(manager, param) {
setAndLockPref("browser.download.useDownloadDir", !param); setAndLockPref("browser.download.useDownloadDir", !param);

Просмотреть файл

@ -290,7 +290,6 @@ function generateDocumentation() {
Certificates: "CertificatesDescription", Certificates: "CertificatesDescription",
SanitizeOnShutdown: "SanitizeOnShutdown2", SanitizeOnShutdown: "SanitizeOnShutdown2",
Permissions: "Permissions2", Permissions: "Permissions2",
PrimaryPassword: "MasterPassword",
}; };
for (let policyName in schema.properties) { for (let policyName in schema.properties) {

Просмотреть файл

@ -645,6 +645,10 @@
} }
}, },
"MasterPassword": {
"type": "boolean"
},
"NetworkPrediction": { "NetworkPrediction": {
"type": "boolean" "type": "boolean"
}, },
@ -852,10 +856,6 @@
} }
}, },
"PrimaryPassword": {
"type": "boolean"
},
"PopupBlocking": { "PopupBlocking": {
"type": "object", "type": "object",
"properties": { "properties": {

Просмотреть файл

@ -11,7 +11,7 @@ let { LoginTestUtils } = ChromeUtils.import(
add_task(async function test_policy_masterpassword_set() { add_task(async function test_policy_masterpassword_set() {
await setupPolicyEngineWithJson({ await setupPolicyEngineWithJson({
policies: { policies: {
PrimaryPassword: true, MasterPassword: true,
}, },
}); });
@ -35,7 +35,7 @@ add_task(async function test_policy_masterpassword_set() {
add_task(async function test_policy_nochangemp() { add_task(async function test_policy_nochangemp() {
await setupPolicyEngineWithJson({ await setupPolicyEngineWithJson({
policies: { policies: {
PrimaryPassword: true, MasterPassword: true,
}, },
}); });
@ -73,7 +73,7 @@ add_task(async function test_policy_nochangemp() {
add_task(async function test_policy_admin() { add_task(async function test_policy_admin() {
await setupPolicyEngineWithJson({ await setupPolicyEngineWithJson({
policies: { policies: {
PrimaryPassword: true, MasterPassword: true,
}, },
}); });

Просмотреть файл

@ -17,7 +17,7 @@ ChromeUtils.defineModuleGetter(
add_task(async function test_policy_admin() { add_task(async function test_policy_admin() {
await setupPolicyEngineWithJson({ await setupPolicyEngineWithJson({
policies: { policies: {
PrimaryPassword: true, MasterPassword: true,
}, },
}); });

Просмотреть файл

@ -13,7 +13,7 @@ Services.scriptloader.loadSubScript(
add_task(async function test_policy_masterpassword_doorhanger() { add_task(async function test_policy_masterpassword_doorhanger() {
await setupPolicyEngineWithJson({ await setupPolicyEngineWithJson({
policies: { policies: {
PrimaryPassword: true, MasterPassword: true,
}, },
}); });