The Sidebar Conversation scrolls back to the top when switching tabs
Categories
(Core :: Machine Learning: Frontend, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr115 | --- | unaffected |
| firefox-esr140 | --- | unaffected |
| firefox150 | --- | unaffected |
| firefox151 | --- | verified |
| firefox152 | --- | verified |
People
(Reporter: rdoghi, Assigned: giulia)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: regression, Whiteboard: [aife])
Attachments
(3 files)
Found in
- Nightly 152.0a1 (2026-04-21)
Affected versions
- Nightly 152.0a1 (2026-04-21)
Affected platforms
- All
Steps to reproduce
- Open Smart Window.
- Reach a few websites in different tabs.
- Submit a few prompts for each tab.
- Switch between tabs back and forth.
Expected result
- The Conversations should not scroll back to the top.
Actual result
- The Conversations scroll back to the top when switching tabs.
Regression range
Bug 2026814
Comment 1•4 months ago
|
||
:gcardieri, since you are the author of the regressor, bug 2026814, could you take a look? Also, could you set the severity field?
For more information, please visit BugBot documentation.
Updated•4 months ago
|
| Assignee | ||
Comment 2•4 months ago
|
||
Checked the state of the main branch before Bug 2026814 and can confirm this bug was caused by it. Sorry about that.
I think the root cause is the change in line 256 of this patch https://phabricator.services.mozilla.com/D290626
The goal of that change was: Added this.shadowRoot?.querySelector(".chat-inner-wrapper")?.style.removeProperty("--content-height"); to recalculate the chat inner content height, this was the same for all tabs and was causing the sidebar scrollbar to show up when it shouldn't
The issue is that this reset is happening every time the user changes a tab, which is not what we want.
| Assignee | ||
Updated•4 months ago
|
Updated•4 months ago
|
Comment 3•4 months ago
•
|
||
(In reply to Giulia Cardieri (:giulia) from comment #2)
Checked the state of the main branch before Bug 2026814 and can confirm this bug was caused by it. Sorry about that.
I think the root cause is the change in line 256 of this patch https://phabricator.services.mozilla.com/D290626
The goal of that change was: Added this.shadowRoot?.querySelector(".chat-inner-wrapper")?.style.removeProperty("--content-height"); to recalculate the chat inner content height, this was the same for all tabs and was causing the sidebar scrollbar to show up when it shouldn't
The issue is that this reset is happening every time the user changes a tab, which is not what we want.
Next week is the final full week of beta for Fx151, do you plan on fixing and requesting uplift in time?
Could this be triaged?
| Assignee | ||
Comment 4•4 months ago
|
||
(In reply to Donal Meehan [:dmeehan] from comment #3)
(In reply to Giulia Cardieri (:giulia) from comment #2)
Checked the state of the main branch before Bug 2026814 and can confirm this bug was caused by it. Sorry about that.
I think the root cause is the change in line 256 of this patch https://phabricator.services.mozilla.com/D290626
The goal of that change was: Added this.shadowRoot?.querySelector(".chat-inner-wrapper")?.style.removeProperty("--content-height"); to recalculate the chat inner content height, this was the same for all tabs and was causing the sidebar scrollbar to show up when it shouldn't
The issue is that this reset is happening every time the user changes a tab, which is not what we want.Next week is the final full week of beta for Fx151, do you plan on fixing and requesting uplift in time?
Could this be triaged?
Hey Donal,
This is already in the smart window backlog but not in our current sprint. I messaged my team and I'm still waiting for an answer from product.
My opinion is that this is not an urgent issue and will probably be worked in the upcoming weeks, not aiming for Fx151 beta.
Updated•4 months ago
|
Updated•4 months ago
|
Comment 5•4 months ago
|
||
The severity field is not set for this bug.
:Mardak, could you have a look please?
For more information, please visit BugBot documentation.
| Assignee | ||
Comment 6•3 months ago
|
||
Updated•3 months ago
|
Updated•3 months ago
|
Comment 9•3 months ago
|
||
Backed out for causing bc failures at browser_aichat_content_scrolling_position.js
Backout Link
Push with failures
Failure Log TV
Failure Log bc
Failure line TEST-UNEXPECTED-FAIL | browser/components/aiwindow/ui/test/browser/browser_aichat_content_scrolling_position.js | test_scrolling_is_restored - Uncaught exception in test - Conv 1 scrollTop should be restored to 100 - timed out after 50 tries.
| Assignee | ||
Updated•3 months ago
|
Updated•3 months ago
|
Comment 10•3 months ago
|
||
Comment 11•3 months ago
|
||
| bugherder | ||
Updated•3 months ago
|
| Reporter | ||
Comment 12•3 months ago
|
||
Verified as fixed in our latest Nightly 152.0a1 (2026-05-13)
Comment 13•3 months ago
|
||
The patch landed in nightly and beta is affected.
:giulia, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- See https://wiki.mozilla.org/Release_Management/Requesting_an_Uplift for documentation on how to request an uplift.
- If no, please set
status-firefox151towontfix.
For more information, please visit BugBot documentation.
| Assignee | ||
Comment 14•3 months ago
|
||
We didn't have any functionality that saved the scrolled position when a conversation is restored via changing tabs. This patch adds this functionality so the user don't see scrolling differences (in most cases) when switching tabs in smart windows.
Original Revision: https://phabricator.services.mozilla.com/D299229
Updated•3 months ago
|
Comment 15•3 months ago
|
||
firefox-release Uplift Approval Request
- User impact if declined/Reason for urgency: This is a key feature to improve smart window's UX and was chosen by the product team to be uplifted.
- Code covered by automated testing?: yes
- Fix verified in Nightly?: yes
- Needs manual QE testing?: yes
- Steps to reproduce for manual QE testing: Follow the same test steps as listed in https://phabricator.services.mozilla.com/D299229
- Risk associated with taking this patch: low
- Explanation of risk level: This is hidden behind the smart window pref and only updates the scrolling function inside the chat, so low risk.
- String changes made/needed?: No
- Is Android affected?: no
Updated•3 months ago
|
| Assignee | ||
Updated•3 months ago
|
Updated•3 months ago
|
Updated•3 months ago
|
Comment 16•3 months ago
|
||
| uplift | ||
| Reporter | ||
Comment 17•3 months ago
|
||
Verified as fixed in our latest Release 151.0.2
Description
•