Commit 86a9ff73 authored by Felipe Gomes's avatar Felipe Gomes
Browse files

Bug 1440030 - CamelCase existing policies to match industry standard. r=mkaply

parent 9eddfdac
......@@ -69,7 +69,7 @@ this.Policies = {
}
},
"display_menu_bar": {
"DisplayMenuBar": {
onBeforeUIStartup(manager, param) {
if (param) {
// This policy is meant to change the default behavior, not to force it.
......@@ -86,7 +86,7 @@ this.Policies = {
}
},
"display_bookmarks_toolbar": {
"DisplayBookmarksToolbar": {
onBeforeUIStartup(manager, param) {
if (param) {
// This policy is meant to change the default behavior, not to force it.
......@@ -103,7 +103,7 @@ this.Policies = {
}
},
"block_set_desktop_background": {
"BlockSetDesktopBackground": {
onBeforeUIStartup(manager, param) {
if (param) {
manager.disallowFeature("setDesktopBackground", true);
......@@ -143,21 +143,21 @@ this.Policies = {
}
},
"dont_check_default_browser": {
"DontCheckDefaultBrowser": {
onBeforeUIStartup(manager, param) {
setAndLockPref("browser.shell.checkDefaultBrowser", false);
}
},
"flash_plugin": {
"FlashPlugin": {
onBeforeUIStartup(manager, param) {
addAllowDenyPermissions("plugin:flash", param.allow, param.block);
addAllowDenyPermissions("plugin:flash", param.Allow, param.Block);
}
},
"popups": {
"Popups": {
onBeforeUIStartup(manager, param) {
addAllowDenyPermissions("popup", param.allow, param.block);
addAllowDenyPermissions("popup", param.Allow, param.Block);
}
},
......@@ -167,15 +167,15 @@ this.Policies = {
}
},
"install_addons": {
"InstallAddons": {
onBeforeUIStartup(manager, param) {
addAllowDenyPermissions("install", param.allow, param.block);
addAllowDenyPermissions("install", param.Allow, param.Block);
}
},
"cookies": {
"Cookies": {
onBeforeUIStartup(manager, param) {
addAllowDenyPermissions("cookie", param.allow, param.block);
addAllowDenyPermissions("cookie", param.Allow, param.Block);
}
},
};
......
{
"policies": {
"block_about_config": true,
"dont_check_default_browser": true,
"BlockAboutProfiles": true,
"DontCheckDefaultBrowser": true,
"flash_plugin": {
"allow": [
"FlashPlugin": {
"Allow": [
"https://www.example.com"
],
"block": [
"Block": [
"https://www.example.org"
]
},
"block_about_profiles": true,
"CreateMasterPassword": false
}
}
......@@ -43,7 +43,7 @@
"enum": [true]
},
"display_menu_bar": {
"DisplayMenuBar": {
"description": "Causes the menu bar to be displayed by default.",
"first_available": "60.0",
......@@ -51,7 +51,7 @@
"enum": [true]
},
"display_bookmarks_toolbar": {
"DisplayBookmarksToolbar": {
"description": "Causes the bookmarks toolbar to be displayed by default.",
"first_available": "60.0",
......@@ -59,7 +59,7 @@
"enum": [true]
},
"block_set_desktop_background": {
"BlockSetDesktopBackground": {
"description": "Prevents usage of the \"Set Image as Desktop Background\" feature.",
"first_available": "60.0",
......@@ -99,7 +99,7 @@
"enum": [true]
},
"dont_check_default_browser": {
"DontCheckDefaultBrowser": {
"description": "Don't check for the default browser on startup.",
"first_available": "60.0",
......@@ -107,20 +107,20 @@
"enum": [true]
},
"flash_plugin": {
"FlashPlugin": {
"description": "Allow or deny flash plugin usage.",
"first_available": "60.0",
"type": "object",
"properties": {
"allow": {
"Allow": {
"type": "array",
"items": {
"type": "origin"
}
},
"block": {
"Block": {
"type": "array",
"items": {
"type": "origin"
......@@ -129,20 +129,20 @@
}
},
"popups": {
"Popups": {
"description": "Allow or deny popup usage.",
"first_available": "60.0",
"type": "object",
"properties": {
"allow": {
"Allow": {
"type": "array",
"items": {
"type": "origin"
}
},
"block": {
"Block": {
"type": "array",
"items": {
"type": "origin"
......@@ -158,20 +158,20 @@
"type": "boolean"
},
"install_addons": {
"InstallAddons": {
"description": "Allow or deny popup websites to install webextensions.",
"first_available": "60.0",
"type": "object",
"properties": {
"allow": {
"Allow": {
"type": "array",
"items": {
"type": "origin"
}
},
"block": {
"Block": {
"type": "array",
"items": {
"type": "origin"
......@@ -180,20 +180,20 @@
}
},
"cookies": {
"Cookies": {
"description": "Allow or deny websites to set cookies.",
"first_available": "60.0",
"type": "object",
"properties": {
"allow": {
"Allow": {
"type": "array",
"items": {
"type": "origin"
}
},
"block": {
"Block": {
"type": "array",
"items": {
"type": "origin"
......
......@@ -5,7 +5,7 @@
add_task(async function setup() {
await setupPolicyEngineWithJson({
"policies": {
"block_set_desktop_background": true
"BlockSetDesktopBackground": true
}
});
});
......
......@@ -14,7 +14,7 @@ add_task(async function test_default_browser_check() {
await setupPolicyEngineWithJson({
"policies": {
"dont_check_default_browser": true
"DontCheckDefaultBrowser": true
}
});
......
......@@ -6,7 +6,7 @@
add_task(async function setup() {
await setupPolicyEngineWithJson({
"policies": {
"display_bookmarks_toolbar": true
"DisplayBookmarksToolbar": true
}
});
});
......
......@@ -6,7 +6,7 @@
add_task(async function setup() {
await setupPolicyEngineWithJson({
"policies": {
"display_menu_bar": true
"DisplayMenuBar": true
}
});
});
......
{
"policies": {
"popups": {
"allow": [
"Popups": {
"Allow": [
"https://www.allow.com",
"https://www.pre-existing-deny.com"
],
"block": [
"Block": [
"https://www.deny.com",
"https://www.pre-existing-allow.com"
]
},
"cookies": {
"allow": [
"Cookies": {
"Allow": [
"https://www.allow.com",
"https://www.pre-existing-deny.com"
],
"block": [
"Block": [
"https://www.deny.com",
"https://www.pre-existing-allow.com"
]
},
"install_addons": {
"allow": [
"InstallAddons": {
"Allow": [
"https://www.allow.com",
"https://www.pre-existing-deny.com"
],
"block": [
"Block": [
"https://www.deny.com",
"https://www.pre-existing-allow.com"
]
},
"flash_plugin": {
"allow": [
"FlashPlugin": {
"Allow": [
"https://www.allow.com",
"https://www.pre-existing-deny.com"
],
"block": [
"Block": [
"https://www.deny.com",
"https://www.pre-existing-allow.com"
]
......
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