Closed Bug 1788953 Opened 3 years ago Closed 3 years ago

While showSearchTerms is true, opening a background tab to a default SERP won't show the search terms when the tab is focused

Categories

(Firefox :: Address Bar, defect, P3)

defect

Tracking

()

VERIFIED FIXED
108 Branch
Tracking Status
firefox108 --- verified
firefox109 --- verified

People

(Reporter: jteow, Assigned: jteow)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

When a user highlights one of the auto-suggested results from the Urlbar and does a search in a new background tab, going to that tab won't show the search term in the Urlbar.

That code path doesn't set the user typed value.

The proposed approach for this as discussed with :adw is:

  1. Save the originalURI on the browser custom element upon loading a new page. This URI should be the first URI loaded for the page.
  2. Rework UrlbarInput.setURI to no longer require the originalURI to be passed in, and instead the additional params (beyond the URI) will be an object with properties. The searchTerms check in setURI will instead reference the selected browsers originalURI.
  3. Add tests that check the search term is shown in background generated tabs.

The severity field is not set for this bug.
:adw, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(adw)
Assignee: nobody → jteow
Severity: -- → S3
Status: NEW → ASSIGNED
Flags: needinfo?(adw)
Priority: -- → P3
Attachment #9294927 - Attachment description: WIP: - Bug 1788953 - Part 1: Add originalURI to browser-custom-element - r?adw → Bug 1788953 - Part 1: Add originalURI to browser-custom-element - r?adw
Attachment #9294928 - Attachment description: WIP: - Bug 1788953 - Part 2: Use cached originalURI in setURI - r?adw → Bug 1788953 - Part 2: Use cached originalURI in setURI - r?adw
Attachment #9294929 - Attachment description: WIP: - Bug 1788953 - Part 3: Modify revert test and add new background tab test - r?adw → Bug 1788953 - Part 3: Modify revert test and add new background tab test - r?adw
Pushed by jteow@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7cda7550cf2b Part 1: Add originalURI to browser-custom-element - r=adw https://hg.mozilla.org/integration/autoland/rev/12e98c774744 Part 2: Use cached originalURI in setURI - r=adw https://hg.mozilla.org/integration/autoland/rev/b20236791eb0 Part 3: Modify revert test and add new background tab test - r=adw
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 108 Branch

The issue is verified as part of the preliminary testing for the Persist Search term in address bar.

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

Attachment

General

Created:
Updated:
Size: