Bug 1599785 - Hide and rename Urlbar searchButton pref. r=mak

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Harry Twyford 2019-11-27 16:38:47 +00:00
Родитель 049ce3ea14
Коммит 49cad2a3ea
3 изменённых файлов: 4 добавлений и 6 удалений

Просмотреть файл

@ -329,8 +329,6 @@ pref("browser.urlbar.update1", false);
// Whether we expand the font size when when the urlbar is
// focused in design update 1.
pref("browser.urlbar.update1.expandTextOnFocus", false);
// Whether the urlbar displays a permanent search button in design update 1.
pref("browser.urlbar.update1.searchButton", false);
// Whether the urlbar should strip https from urls in the view.
pref("browser.urlbar.update1.view.stripHttps", false);

Просмотреть файл

@ -87,7 +87,7 @@ class UrlbarInput {
if (this.megabar) {
this.textbox.classList.add("megabar");
this.textbox.parentNode.classList.add("megabar");
this.searchButton = UrlbarPrefs.get("update1.searchButton");
this.searchButton = UrlbarPrefs.get("update2.searchButton");
if (this.searchButton) {
this.textbox.classList.add("searchButton");
}

Просмотреть файл

@ -150,11 +150,11 @@ const PREF_URLBAR_DEFAULTS = new Map([
// Whether the quantum bar displays design update 1.
["update1", false],
// Whether the urlbar displays a permanent search button in design update 1.
["update1.searchButton", false],
// If true, we strip https:// instead of http:// from URLs in the results view.
["update1.view.stripHttps", false],
// Whether the urlbar displays a permanent search button in design update 2.
["update2.searchButton", false],
]);
const PREF_OTHER_DEFAULTS = new Map([
["keyword.enabled", true],