tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 00a2b13143d217d9bbccef3964c85e70bed46547
parent 4bef022c014c5618ad9291276114e37992a37d37
Author: Henry Wilkes <henry@torproject.org>
Date:   Tue, 21 Oct 2025 14:42:14 +0100

BB 44279: Disable contextual search install prompt.

Diffstat:
Mbrowser/components/urlbar/ActionsProviderContextualSearch.sys.mjs | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/browser/components/urlbar/ActionsProviderContextualSearch.sys.mjs b/browser/components/urlbar/ActionsProviderContextualSearch.sys.mjs @@ -9,6 +9,8 @@ import { ActionsResult, } from "moz-src:///browser/components/urlbar/ActionsProvider.sys.mjs"; +import { AppConstants } from "resource://gre/modules/AppConstants.sys.mjs"; + const lazy = {}; ChromeUtils.defineESModuleGetters(lazy, { @@ -315,6 +317,11 @@ class ProviderContextualSearch extends ActionsProvider { ); if ( + // Do not show the install prompt in non-private windows to have + // consistent behaviour with private windows and avoid linkability + // concerns. tor-browser#44134. + // Maybe re-enable as part of tor-browser#44117. + !AppConstants.BASE_BROWSER_VERSION && !queryContext.isPrivate && type != INSTALLED_ENGINE && (await Services.search.shouldShowInstallPrompt(engine))