From f9c236531f0614b54c3bf386662b997e519d4582 Mon Sep 17 00:00:00 2001 From: Mark Banner Date: Mon, 30 Sep 2019 19:18:26 +0000 Subject: [PATCH] Bug 1563021 - Add preferences UI to allow enabling and selection of a separate default private engine. r=fluent-reviewers,jaws,flod Differential Revision: https://phabricator.services.mozilla.com/D46971 --HG-- extra : moz-landing-system : lando --- browser/app/profile/firefox.js | 4 + .../preferences/in-content/privacy.inc.xul | 3 +- .../preferences/in-content/search.inc.xul | 21 ++ .../preferences/in-content/search.js | 145 ++++++++- .../preferences/in-content/tests/browser.ini | 4 + .../tests/browser_searchDefaultEngine.js | 277 ++++++++++++++++++ .../in-content/tests/engine1/manifest.json | 27 ++ .../in-content/tests/engine2/manifest.json | 27 ++ .../en-US/browser/preferences/preferences.ftl | 9 + .../shared/incontentprefs/preferences.inc.css | 2 +- .../themes/shared/incontentprefs/search.css | 6 +- 11 files changed, 505 insertions(+), 20 deletions(-) create mode 100644 browser/components/preferences/in-content/tests/browser_searchDefaultEngine.js create mode 100644 browser/components/preferences/in-content/tests/engine1/manifest.json create mode 100644 browser/components/preferences/in-content/tests/engine2/manifest.json diff --git a/browser/app/profile/firefox.js b/browser/app/profile/firefox.js index ea6155a1d854..e7bfaf43d1d3 100644 --- a/browser/app/profile/firefox.js +++ b/browser/app/profile/firefox.js @@ -386,6 +386,10 @@ pref("browser.search.hiddenOneOffs", ""); // Mirrors whether the search-container widget is in the navigation toolbar. pref("browser.search.widget.inNavBar", false); +// Enables display of the options for the user using a separate default search +// engine in private browsing mode. +pref("browser.search.separatePrivateDefault.ui.enabled", false); + pref("browser.sessionhistory.max_entries", 50); // Built-in default permissions. diff --git a/browser/components/preferences/in-content/privacy.inc.xul b/browser/components/preferences/in-content/privacy.inc.xul index f2d59cae1efa..6c3cf966df74 100644 --- a/browser/components/preferences/in-content/privacy.inc.xul +++ b/browser/components/preferences/in-content/privacy.inc.xul @@ -621,7 +621,8 @@ + +