зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1653584 - Rename MasterPassword policy to PrimaryPassword. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D83957
This commit is contained in:
Родитель
b70d90ce05
Коммит
a84538bfed
|
@ -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,
|
||||
},
|
||||
});
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче