Closed Bug 1803056 Opened 1 year ago Closed 1 year ago

Sub-pages display the search term if they're clicked as the persist search tip is displayed

Categories

(Firefox :: Address Bar, defect)

Desktop
All
defect

Tracking

()

VERIFIED FIXED
110 Branch
Tracking Status
firefox108 --- disabled
firefox109 --- disabled
firefox110 --- verified

People

(Reporter: cbaica, Assigned: jteow)

References

(Blocks 2 open bugs)

Details

Attachments

(2 files)

Found in

  • Fx 109.0a1

Affected versions

  • Fx 109.0a1
  • Fx 108.0b7

Affected platforms

  • Windows 10

Preconditions
browser.urlbar.showSearchTerms.featureGate set to true.
browser.urlbar.searchTips.test.ignoreShowLimits set to true. This makes the issue easier to catch.

Steps to reproduce

  1. Launch Firefox.
  2. Input a search term and press enter.
  3. In the SERP click on Images/Videos/News subpages displayed beneath the websearch bar right as the search tip is displayed. (this is a bit more dificult to time, but it can happen).

Expected result

  • FULL url is displayed.

Actual result

  • Search term is persisted in the subpages.

Regression range

  • This is not a regression.

Additional notes

  • The issue occurs with Google and Bing, as for DDG the search term is persisted without timing the click with the search tip.
  • The issue occurs ONLY if the timing is correct as displayed in the attached video.
  • This is a very particular edge case, but it could happen, as the search tip is not displayed right away on a SERP with a persisted term.
Has STR: --- → yes

After some investigation, I think this is the cause of a new intermittent failure in browser/components/search/test/browser/browser_search_telemetry_sources_navigation.js.

Before the persist search tip is triggered, we'll have to keep track of whether the browser is loading another page.

Blocks: 1781888
Assignee: nobody → jteow
Duplicate of this bug: 1806111
Pushed by jteow@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e0677d0ad42a
Prevent search tips from appearing when a new request is initiated - r=adw

Backed out for causing mochitest failures on browser-tips/browser_searchTips.js

Flags: needinfo?(jteow)

I think I've identified the reasons for the failure, going to request another code review before landing again.

Flags: needinfo?(jteow)
Pushed by jteow@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/eab51c8b1e27
Prevent search tips from appearing when a new request is initiated - r=adw
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 110 Branch

The patch landed in nightly and beta is affected.
:jteow, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox109 to wontfix.

For more information, please visit auto_nag documentation.

Flags: needinfo?(jteow)

For now, I don't think I'll request an uplift since the underlying feature is not enabled in Firefox 109 outside of Nightly builds.

Flags: needinfo?(jteow)

Marking the issues as verified fixed as I cannot catch the case anymore.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: