Closed
Bug 2014053
Opened 7 months ago
Closed 6 months ago
support browser history back navigation to chat conversation
Categories
(Core :: Machine Learning: Frontend, enhancement, P1)
Core
Machine Learning: Frontend
Tracking
()
VERIFIED
FIXED
150 Branch
| Tracking | Status | |
|---|---|---|
| firefox150 | --- | verified |
People
(Reporter: Mardak, Assigned: mlucks)
References
(Blocks 1 open bug)
Details
(Whiteboard: [genai][chat])
Attachments
(1 file)
starting a conversation then clicking a link or other navigation should allow hitting the back button to the conversation. currently it loads the empty state. probably wants some history.pushState building on top of bug 2009866?
Updated•7 months ago
|
| Reporter | ||
Comment 1•6 months ago
|
||
a few weeks ago i took an initial look at this after we switched from uri with hash to data-conversation-id where basically it checked for history.state if lacking a conversation id:
#getPendingConversationId() {
+ return hostBrowser?.getAttribute("data-conversation-id") ?? window.history.state?.conversationId;
and a setter helper whenever we updated the conversation
+ set conversation(value) {
+ this.#conversation = value;
+ window.history.replaceState(
+ { ...window.history.state, conversationId: value?.id },
+ ""
+ );
although a bit has changed with conversation state since bug 2012536 and bug 2015921
Pushed by mlucks@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/c9705213a5c6
https://hg.mozilla.org/integration/autoland/rev/60781c5b0278
Support browser history back navigation to chat conversation - r=ai-frontend-reviewers,echa
Comment 4•6 months ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 6 months ago
status-firefox150:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 150 Branch
Comment 5•6 months ago
|
||
Verified as fixed in our latest Nightly build 150.0a1 (2026-03-04)
Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-ver-done-c160/b149]
You need to log in
before you can comment on or make changes to this bug.
Description
•