diff --git a/browser/components/enterprisepolicies/Policies.jsm b/browser/components/enterprisepolicies/Policies.jsm index 26281e7cc1aa..be8ec706a576 100644 --- a/browser/components/enterprisepolicies/Policies.jsm +++ b/browser/components/enterprisepolicies/Policies.jsm @@ -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); } }, }, diff --git a/browser/components/enterprisepolicies/tests/browser/browser_policies_simple_pref_policies.js b/browser/components/enterprisepolicies/tests/browser/browser_policies_simple_pref_policies.js index 6a183af24230..fc749e4a3dc8 100644 --- a/browser/components/enterprisepolicies/tests/browser/browser_policies_simple_pref_policies.js +++ b/browser/components/enterprisepolicies/tests/browser/browser_policies_simple_pref_policies.js @@ -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: {