Bug 1653584 - Rename MasterPassword policy to PrimaryPassword. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D83957
This commit is contained in:
Michael Kaply 2020-07-17 15:59:46 +00:00
Родитель b70d90ce05
Коммит a84538bfed
6 изменённых файлов: 20 добавлений и 19 удалений

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

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

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

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

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

@ -645,10 +645,6 @@
}
},
"MasterPassword": {
"type": "boolean"
},
"NetworkPrediction": {
"type": "boolean"
},
@ -1029,6 +1025,10 @@
}
},
"PrimaryPassword": {
"type": "boolean"
},
"PromptForDownloadLocation": {
"type": "boolean"
},

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

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

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

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

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

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