Commit 3713f953 authored by Michael Kaply's avatar Michael Kaply
Browse files

Bug 1446477 - Add policy for security.enterprise_roots.enabled. r=Felipe

MozReview-Commit-ID: 9c3lcCRVKDx

--HG--
extra : rebase_source : 43658e21955868994a2cabc6eecea1a40a22ec5e
parent 7407c149
......@@ -122,6 +122,14 @@ var Policies = {
}
},
"Certificates": {
onBeforeAddons(manager, param) {
if ("ImportEnterpriseRoots" in param) {
setAndLockPref("security.enterprise_roots.enabled", true);
}
}
},
"Cookies": {
onBeforeUIStartup(manager, param) {
addAllowDenyPermissions("cookie", param.Allow, param.Block);
......
......@@ -98,6 +98,18 @@
}
},
"Certificates": {
"description": "Whether or not to use built in certs.",
"first_available": "60.0",
"type": "object",
"properties": {
"ImportEnterpriseRoots": {
"type": "boolean"
}
}
},
"Cookies": {
"description": "Allow or deny websites to set cookies.",
"first_available": "60.0",
......
......@@ -91,6 +91,16 @@ const POLICIES_TESTS = [
"network.automatic-ntlm-auth.trusted-uris": "a.com, b.com",
}
},
{
policies: {
"Certificates": {
"ImportEnterpriseRoots": true,
}
},
lockedPrefs: {
"security.enterprise_roots.enabled": true,
}
},
];
add_task(async function test_policy_remember_passwords() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment