зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1616793 - Stop hiding top sites if they are disabled in the new tab page. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D63464 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
73a6a77284
Коммит
86af384543
|
@ -186,7 +186,6 @@ const PREF_OTHER_DEFAULTS = new Map([
|
|||
["browser.search.suggest.enabled.private", false],
|
||||
["ui.popup.disable_autohide", false],
|
||||
["browser.fixup.dns_first_for_single_words", false],
|
||||
["browser.newtabpage.activity-stream.feeds.topsites", true],
|
||||
]);
|
||||
|
||||
// Maps preferences under browser.urlbar.suggest to behavior names, as defined
|
||||
|
|
|
@ -406,13 +406,9 @@ class UrlbarView {
|
|||
!this.input.value ||
|
||||
this.input.getAttribute("pageproxystate") == "valid"
|
||||
) {
|
||||
// We do not show Top Sites in private windows, or if the user disabled
|
||||
// them on about:newtab.
|
||||
let canOpenTopSites =
|
||||
!this.input.isPrivate &&
|
||||
UrlbarPrefs.get("browser.newtabpage.activity-stream.feeds.topsites");
|
||||
if (
|
||||
canOpenTopSites &&
|
||||
// Do not show Top Sites in private windows.
|
||||
!this.input.isPrivate &&
|
||||
!this.isOpen &&
|
||||
["mousedown", "command"].includes(queryOptions.event.type)
|
||||
) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче