Backed out changeset d6454f53dcc0 (bug 1804314) for causing mochitest failures on browser_glean_telemetry CLOSED TREE
This commit is contained in:
@@ -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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user