henry pushed to branch tor-browser-153.1.0esr-16.0-1 at The Tor Project / Applications / Tor Browser

Commits:

1 changed file:

Changes:

  • browser/components/preferences/config/search.mjs
    ... ... @@ -12,6 +12,7 @@ const { XPCOMUtils } = ChromeUtils.importESModule(
    12 12
     const lazy = XPCOMUtils.declareLazy({
    
    13 13
       AddonSearchEngine:
    
    14 14
         "moz-src:///toolkit/components/search/AddonSearchEngine.sys.mjs",
    
    15
    +  AppConstants: "resource://gre/modules/AppConstants.sys.mjs",
    
    15 16
       ConfigSearchEngine:
    
    16 17
         "moz-src:///toolkit/components/search/ConfigSearchEngine.sys.mjs",
    
    17 18
       CustomizableUI:
    
    ... ... @@ -426,6 +427,11 @@ Preferences.addSetting({
    426 427
       id: "urlBarSuggestionPermanentPBMessage",
    
    427 428
       deps: ["urlBarSuggestionCheckbox", "permanentPBEnabledPref"],
    
    428 429
       visible: deps => {
    
    430
    +    // Hide since the wording is misleading about the default history settings.
    
    431
    +    // tor-browser#44831.
    
    432
    +    if (lazy.AppConstants.BASE_BROWSER_VERSION) {
    
    433
    +      return false;
    
    434
    +    }
    
    429 435
         return (
    
    430 436
           deps.urlBarSuggestionCheckbox.visible && deps.permanentPBEnabledPref.value
    
    431 437
         );