Commit 3bb7a4c4 authored by Felipe Gomes's avatar Felipe Gomes
Browse files

Bug 1442719 - Policy: Disable the ability to bypass Safe Browsing warnings. r=francois

parent 5b8f8a93
......@@ -291,6 +291,14 @@ var Policies = {
}
},
"DisableSecurityBypass": {
onBeforeUIStartup(manager, param) {
if ("SafeBrowsing" in param) {
setAndLockPref("browser.safebrowsing.allowOverride", !param.SafeBrowsing);
}
}
},
"DisableSysAddonUpdate": {
onBeforeAddons(manager, param) {
if (param) {
......
......@@ -234,6 +234,18 @@
"type": "boolean"
},
"DisableSecurityBypass": {
"description": "Prevents the user from bypassing certain security warnings.",
"first_available": "60.0",
"type": "object",
"properties": {
"SafeBrowsing": {
"type": "boolean"
}
}
},
"DisableSysAddonUpdate": {
"description": "Prevent the browser from installing and updating system addons.",
"first_available": "60.0",
......
......@@ -39,6 +39,17 @@ const POLICIES_TESTS = [
lockedPrefs: { "signon.rememberSignons": true },
},
// POLICY: DisableSecurityBypass
{
policies: {
"DisableSecurityBypass": {
"SafeBrowsing": true
}
},
lockedPrefs: { "browser.safebrowsing.allowOverride": false },
},
// POLICY: DisableFormHistory
{
policies: { "DisableFormHistory": true },
......
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