Closed Bug 2034438 Opened 4 months ago Closed 3 months ago

The Google Search page performed by the AI assistant is missing from history when navigating back

Categories

(Core :: Machine Learning: Frontend, defect)

Desktop
Unspecified
defect

Tracking

()

VERIFIED FIXED
153 Branch
Tracking Status
firefox-esr140 --- disabled
firefox150 --- wontfix
firefox151 --- wontfix
firefox152 --- verified
firefox153 --- verified

People

(Reporter: rdoghi, Assigned: chloezhou)

References

(Blocks 1 open bug, Regressed 1 open bug)

Details

(Whiteboard: [aife][chat])

Attachments

(3 files)

Attached video Search.mp4

Found in

  • Nightly 152.0a1 (2026-04-23)

Affected versions

  • Nightly 152.0a1 (2026-04-23)
    Beta 151.0b1
    Release 150

Affected platforms

  • All

Steps to reproduce

  1. Reach a pair of shoes on amazon.com
  2. Ask the Assistant for a different pair of shoes it would need to search for on google.
  3. Ask the assistant for a Link to the first suggestion.
  4. Click the link from the latest response.
  5. Hit The Back navigation button.

Expected result

  • The Google search page done by the AI model should be displayed.

Actual result

  • The Original page from before the google search page is displayed.

Regression range
N/A

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

For more information, please visit BugBot documentation.

Flags: needinfo?(edilee)

When the assistant runs the search tool, it navigates the user's tab to the SERP programmatically. Because the navigation isn't a user gesture and the user typically doesn't scroll or click on the SERP before asking a follow-up, the resulting nsISHEntry never gets its hasUserInteraction flag set. With browser.navigation.requireUserInteraction on (the default), the Back button then skips that entry on the way back from any subsequent page, making it look like the SERP was never in history at all.

Set hasUserInteraction = true on the new SHEntry right after the navigation completes in RunSearch.#performSearchAndWait, since the search was explicitly requested by the user via the assistant.

Assignee: nobody → chzhou
Status: NEW → ASSIGNED
Pushed by chzhou@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/bb200f4f03fb https://hg.mozilla.org/integration/autoland/rev/8619835f97a0 Mark assistant search history entries as having user interaction so Back doesn't skip them r=cmurray
Regressions: 2044240
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 153 Branch

Verified as fixed in our latest Nightly 153.0a1 (2026-06-03)

QA Whiteboard: [qa-found-in-c152][QA-4747][S2] → [qa-found-in-c152][QA-4747][S2][qa-ver-needed-c153/b152]
QA Contact: rdoghi
Flags: needinfo?(edilee)

Is this something we need to nominate for Beta uplift?

Flags: needinfo?(chzhou)
Blocks: 2040712

firefox-beta Uplift Approval Request

  • User impact if declined/Reason for urgency: When a user asks the assistant to search and then clicks a result, pressing Back jumps past the SERP back to whatever was on the tab before the assistant ran — making it look like the search history vanished. This is confusing and a notable usability regression specifically for assistant initiated workflows.
  • Code covered by automated testing?: yes
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: no
  • Steps to reproduce for manual QE testing:
  • Risk associated with taking this patch: low
  • Explanation of risk level: The change is a single-line behavior tweak scoped to RunSearch.#performSearchAndWait — it sets hasUserInteraction = true only on the SHEntry produced by the assistant's own programmatic navigation, after that navigation completes. It can't affect non-assistant navigations or sites the user reaches by other means.
  • String changes made/needed?: None
  • Is Android affected?: no
Attachment #9595764 - Flags: approval-mozilla-beta?

When the assistant runs the search tool, it navigates the user's tab to the SERP programmatically. Because the navigation isn't a user gesture and the user typically doesn't scroll or click on the SERP before asking a follow-up, the resulting nsISHEntry never gets its hasUserInteraction flag set. With browser.navigation.requireUserInteraction on (the default), the Back button then skips that entry on the way back from any subsequent page, making it look like the SERP was never in history at all.

Set hasUserInteraction = true on the new SHEntry right after the navigation completes in RunSearch.#performSearchAndWait, since the search was explicitly requested by the user via the assistant.

Original Revision: https://phabricator.services.mozilla.com/D302900

Flags: in-testsuite+
Attachment #9595764 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Verified as fixed in our latest Beta 152.0b10

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-found-in-c152][QA-4747][S2][qa-ver-needed-c153/b152] → [qa-found-in-c152][QA-4747][S2][qa-ver-done-c153/b152]
QA Whiteboard: [qa-found-in-c152][QA-4747][S2][qa-ver-done-c153/b152] → [qa-found-in-c152][QA-4747][S2][qa-ver-done-c153/b152][uplift]
Flags: needinfo?(chzhou)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: