Commit 850323ee authored by Michael Kaply's avatar Michael Kaply
Browse files

Bug 1513532 - Add policies for search suggestions. r=Felipe,flod

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

--HG--
extra : moz-landing-system : lando
parent 17eea3b7
......@@ -897,6 +897,12 @@ var Policies = {
},
},
"SearchSuggestEnabled": {
onBeforeAddons(manager, param) {
setAndLockPref("browser.urlbar.suggest.searches", param);
},
},
"SecurityDevices": {
onProfileAfterChange(manager, param) {
let securityDevices = param;
......
......@@ -566,6 +566,15 @@
},
"browser.cache.disk.parent_directory": {
"type": "string"
},
"browser.urlbar.suggest.openpage": {
"type": "boolean"
},
"browser.urlbar.suggest.history": {
"type": "boolean"
},
"browser.urlbar.suggest.bookmark": {
"type": "boolean"
}
}
},
......@@ -696,6 +705,10 @@
}
},
"SearchSuggestEnabled": {
"type": "boolean"
},
"SecurityDevices": {
"type": "object",
"patternProperties": {
......
......@@ -278,6 +278,16 @@ const POLICIES_TESTS = [
"browser.newtabpage.enabled": false,
},
},
// POLICY: SearchSuggestEnabled
{
policies: {
"SearchSuggestEnabled": false,
},
lockedPrefs: {
"browser.urlbar.suggest.searches": false,
},
},
];
add_task(async function test_policy_remember_passwords() {
......
......@@ -125,6 +125,8 @@ policy-SearchBar = Set the default location of the search bar. The user is still
policy-SearchEngines = Configure search engine settings. This policy is only available on the Extended Support Release (ESR) version.
policy-SearchSuggestEnabled = Enable or disable search suggestions.
# For more information, see https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/PKCS11/Module_Installation
policy-SecurityDevices = Install PKCS #11 modules.
......
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