Commit 20568277 authored by Michael Kaply's avatar Michael Kaply
Browse files

Bug 1523810 - Add a policy for disabling captive portal support. r=Felipe,flod

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

--HG--
extra : moz-landing-system : lando
parent 12805e6a
......@@ -133,6 +133,12 @@ var Policies = {
},
},
"CaptivePortal": {
onBeforeAddons(manager, param) {
setAndLockPref("network.captive-portal-service.enabled", param);
},
},
"Certificates": {
onBeforeAddons(manager, param) {
if ("ImportEnterpriseRoots" in param) {
......
......@@ -88,6 +88,10 @@
}
},
"CaptivePortal": {
"type": "boolean"
},
"Certificates": {
"type": "object",
"properties": {
......
......@@ -224,6 +224,16 @@ const POLICIES_TESTS = [
"security.tls.version.max": 4,
},
},
// POLICY: CaptivePortal
{
policies: {
"CaptivePortal": false,
},
lockedPrefs: {
"network.captive-portal-service.enabled": false,
},
},
];
add_task(async function test_policy_remember_passwords() {
......
......@@ -23,6 +23,8 @@ policy-BlockAboutSupport = Block access to the about:support page.
policy-Bookmarks = Create bookmarks in the Bookmarks toolbar, Bookmarks menu, or a specified folder inside them.
policy-CaptivePortal = Enable or disable captive portal support.
policy-CertificatesDescription = Add certificates or use built-in certificates.
policy-Cookies = Allow or deny websites to set cookies.
......
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