morgan pushed to branch tor-browser-153.0esr-16.0-1 at The Tor Project / Applications / Tor Browser
Commits:
-
a502c2d2
by Henry Wilkes at 2026-08-04T13:48:31+00:00
1 changed file:
Changes:
| ... | ... | @@ -456,10 +456,20 @@ export class SearchModeSwitcher { |
| 456 | 456 | // search modes. Hence when the settings redesign is enabled we show
|
| 457 | 457 | // all local search modes regardless of the prefs.
|
| 458 | 458 | this.#engines = searchEngines.concat(
|
| 459 | - lazy.UrlbarUtils.LOCAL_SEARCH_MODES.filter(
|
|
| 460 | - engine =>
|
|
| 459 | + lazy.UrlbarUtils.LOCAL_SEARCH_MODES.filter(engine => {
|
|
| 460 | + // Do not show the search history option in PBM. tor-browser#43864.
|
|
| 461 | + // Although, it can still be triggered with "^" restrict keyword or
|
|
| 462 | + // through an app menu item. See also mozilla bug 1980928.
|
|
| 463 | + if (
|
|
| 464 | + engine.source === lazy.UrlbarUtils.RESULT_SOURCE.HISTORY &&
|
|
| 465 | + lazy.PrivateBrowsingUtils.permanentPrivateBrowsing
|
|
| 466 | + ) {
|
|
| 467 | + return false;
|
|
| 468 | + }
|
|
| 469 | + return (
|
|
| 461 | 470 | lazy.settingsRedesignEnabled || lazy.UrlbarPrefs.get(engine.pref)
|
| 462 | - )
|
|
| 471 | + );
|
|
| 472 | + })
|
|
| 463 | 473 | );
|
| 464 | 474 | }
|
| 465 | 475 | }
|