Bug 1491664 - Allow true and false for ImportEnterpriseRoots policy. r=Felipe

Differential Revision: https://phabricator.services.mozilla.com/D8137

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Michael Kaply 2018-10-10 22:00:23 +00:00
parent 1f6d384a65
commit cd129f0546
2 changed files with 14 additions and 2 deletions

View File

@ -132,7 +132,7 @@ var Policies = {
"Certificates": {
onBeforeAddons(manager, param) {
if ("ImportEnterpriseRoots" in param) {
setAndLockPref("security.enterprise_roots.enabled", true);
setAndLockPref("security.enterprise_roots.enabled", param.ImportEnterpriseRoots);
}
},
},

View File

@ -113,7 +113,7 @@ const POLICIES_TESTS = [
},
},
// POLICY: Certificates
// POLICY: Certificates (true)
{
policies: {
"Certificates": {
@ -125,6 +125,18 @@ const POLICIES_TESTS = [
},
},
// POLICY: Certificates (false)
{
policies: {
"Certificates": {
"ImportEnterpriseRoots": false,
},
},
lockedPrefs: {
"security.enterprise_roots.enabled": false,
},
},
// POLICY: InstallAddons.Default (block addon installs)
{
policies: {