зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1442719 - Policy: Disable the ability to bypass Safe Browsing warnings. r=francois
This commit is contained in:
Родитель
5b8f8a9327
Коммит
3bb7a4c400
|
@ -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 },
|
||||
|
|
Загрузка…
Ссылка в новой задаче