Commit 61089e28 authored by henry's avatar henry Committed by Pier Angelo Vendrame
Browse files

fixup! BB 44711: Hide unwanted setting controls in Base Browser.

BB 44831: Hide the search suggestions private browsing banner.
parent a080ab7f
Loading
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@ const { XPCOMUtils } = ChromeUtils.importESModule(
const lazy = XPCOMUtils.declareLazy({
  AddonSearchEngine:
    "moz-src:///toolkit/components/search/AddonSearchEngine.sys.mjs",
  AppConstants: "resource://gre/modules/AppConstants.sys.mjs",
  ConfigSearchEngine:
    "moz-src:///toolkit/components/search/ConfigSearchEngine.sys.mjs",
  CustomizableUI:
@@ -428,6 +429,11 @@ Preferences.addSetting({
  id: "urlBarSuggestionPermanentPBMessage",
  deps: ["urlBarSuggestionCheckbox", "permanentPBEnabledPref"],
  visible: deps => {
    // Hide since the wording is misleading about the default history settings.
    // tor-browser#44831.
    if (lazy.AppConstants.BASE_BROWSER_VERSION) {
      return false;
    }
    return (
      deps.urlBarSuggestionCheckbox.visible && deps.permanentPBEnabledPref.value
    );