Bug 1555584 - SearchSuggestEnabled policy should affect to the separate search bar r=mkaply
authorYUKI "Piro" Hiroshi <yuki@clear-code.com>
Fri, 31 May 2019 15:16:12 +0000
changeset 536071 2d9760d817d3180e0cf18975c635b303904fb526
parent 536070 feafac213345e4dfd52f1d1e00a455ce5842766b
child 536072 bacf3c56e94081b742fb2f1b75620aeedc59a25e
push id11522
push userffxbld-merge
push dateMon, 01 Jul 2019 09:00:55 +0000
treeherdermozilla-beta@53ea74d2bd09 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmkaply
bugs1555584
milestone69.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1555584 - SearchSuggestEnabled policy should affect to the separate search bar r=mkaply Differential Revision: https://phabricator.services.mozilla.com/D33132
browser/components/enterprisepolicies/Policies.jsm
browser/components/enterprisepolicies/tests/xpcshell/test_simple_pref_policies.js
--- a/browser/components/enterprisepolicies/Policies.jsm
+++ b/browser/components/enterprisepolicies/Policies.jsm
@@ -1054,16 +1054,17 @@ var Policies = {
         }
       });
     },
   },
 
   "SearchSuggestEnabled": {
     onBeforeAddons(manager, param) {
       setAndLockPref("browser.urlbar.suggest.searches", param);
+      setAndLockPref("browser.search.suggest.enabled", param);
     },
   },
 
   "SecurityDevices": {
     onProfileAfterChange(manager, param) {
       let securityDevices = param;
       let pkcs11db = Cc["@mozilla.org/security/pkcs11moduledb;1"].getService(Ci.nsIPKCS11ModuleDB);
       let moduleList = pkcs11db.listModules();
--- a/browser/components/enterprisepolicies/tests/xpcshell/test_simple_pref_policies.js
+++ b/browser/components/enterprisepolicies/tests/xpcshell/test_simple_pref_policies.js
@@ -420,16 +420,17 @@ const POLICIES_TESTS = [
 
   // POLICY: SearchSuggestEnabled
   {
     policies: {
       "SearchSuggestEnabled": false,
     },
     lockedPrefs: {
       "browser.urlbar.suggest.searches": false,
+      "browser.search.suggest.enabled": false,
     },
   },
 
   // POLICY: FirefoxHome
   {
     policies: {
       "FirefoxHome": {
         "Pocket": false,