Chat search opening (from search handoff tool) should always happen in the associated tab
Categories
(Core :: Machine Learning: General, defect, P1)
Tracking
()
| 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).
Updated•6 months ago
|
| Reporter | ||
Updated•6 months ago
|
| Reporter | ||
Comment 1•6 months ago
|
||
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).
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).
Updated•6 months ago
|
Updated•6 months ago
|
Description
•