Closed Bug 2014802 Opened 6 months ago Closed 6 months ago

Chat search opening (from search handoff tool) should always happen in the associated tab

Categories

(Core :: Machine Learning: General, defect, P1)

Desktop
All
defect
Points:
3

Tracking

()

RESOLVED FIXED
149 Branch
Tracking Status
firefox149 --- fixed

People

(Reporter: Gijs, Assigned: ngrato)

References

(Blocks 1 open bug)

Details

(Whiteboard: [genai][chat])

Attachments

(1 file)

Chat.sys.mjs falls back to getTopWindow(), which could lead to opening the sidebar in a non-AI window. We shouldn't allow that, and instead require that we open in the same window.

Also, the selected tab might change between when the chat starts and when we invoke the tool, and we should make sure that the search opens in the same chat (and we should abort if the tab has since been closed, for instance).

Severity: -- → S2
Priority: -- → P1

https://searchfox.org/firefox-main/rev/336fbf710daa1af13ff2bb550dd0ea1d4e82b305/browser/components/aiwindow/models/Chat.sys.mjs#178 has a context object with a win property, it basically wants to be a browsingContext object instead (and no fallback - if the browsingContext can't be found we should abort the search or handoff).

Assignee: nobody → ngrato

Chat.sys.mjs falls back to getTopWindow(), which could lead to opening the sidebar in a non-AI window. We shouldn't allow that, and instead require that we open in the same window.

Also, the selected tab might change between when the chat starts and when we invoke the tool, and we should make sure that the search opens in the same chat (and we should abort if the tab has since been closed, for instance).

Points: --- → 3
Attachment #9543727 - Attachment description: Bug 2014802 - Chat search opening (from search handoff tool) should always happen in the associated tab r=gijs,omarg → Bug 2014802 - Chat search opening (from search handoff tool) should always happen in the associated tab r=omarg
Pushed by ngrato@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/a775b5db6724 https://hg.mozilla.org/integration/autoland/rev/e7b4e76bb8ee Chat search opening (from search handoff tool) should always happen in the associated tab r=Gijs,ai-frontend-reviewers,again
Status: NEW → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 149 Branch
Blocks: 1988017
Whiteboard: [genai] → [genai][chat]
Regressions: 2016702
No longer regressions: 2016702
See Also: → 2016702
Regressions: 2016702
QA Whiteboard: [qa-triage-done-c150/b149][qa-ver-needed-c150/b149]
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: