Backed out changeset d6454f53dcc0 (bug 1804314) for causing mochitest failures on browser_glean_telemetry CLOSED TREE

This commit is contained in:
Norisz Fay
2022-12-19 01:40:31 +02:00
parent bfeb8bb224
commit 5cbd726d6d
10 changed files with 80 additions and 643 deletions

View File

@@ -339,7 +339,11 @@ export class UrlbarInput {
) {
if (!dontShowSearchTerms && this.window.gBrowser.userTypedValue == null) {
this.window.gBrowser.selectedBrowser.showingSearchTerms = false;
if (lazy.UrlbarPrefs.isPersistedSearchTermsEnabled()) {
if (
lazy.UrlbarPrefs.get("showSearchTermsFeatureGate") &&
lazy.UrlbarPrefs.get("showSearchTerms.enabled") &&
!lazy.UrlbarPrefs.get("browser.search.widget.inNavBar")
) {
let term = lazy.UrlbarSearchUtils.getSearchTermIfDefaultSerpUri(
this.window.gBrowser.selectedBrowser.originalURI ?? uri
);