The Vertical Sidebar and Tabs are not displayed when enabled if a sidebar is already opened
Categories
(Firefox :: Sidebar, defect, P1)
Tracking
()
People
(Reporter: rdoghi, Assigned: sfoster)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: regression, Whiteboard: [fidefe-sidebar])
Attachments
(3 files)
Found in
- 131.0a1 (2024-08-21)
Affected versions
- 131.0a1 (2024-08-21)
Affected platforms
- all
Steps to reproduce
- Enable ChatGPT from Firefox Labs
- Check the Sidebar and Vertical Tabs buttons from the Firefox Labs page
- Click the Sidebar button added to the Toolbar
Expected result
- The Sidebar and Vertical tabs should enable.
Actual result
- The Sidebar and Vertical tabs are not displayed.
Clicking the Sidebar button from the toolbar does not work.
Disabling and Enabling the Sidebar again will show the Actual Sidebar and vertical tabs without issues.
Regression range
Not a regression.
Comment 1•3 months ago
|
||
This is interesting... I have not been able to reproduce this. Are you still seeing it?
Comment 2•3 months ago
•
|
||
very strange… at 0:34, unchecking chatbot does finally close the sidebar (but not from previous attempts), and it's checking SidebarController to hide. If you can reproduce the issue, checking the browser console for errors would help
Reporter | ||
Comment 3•3 months ago
|
||
I can still reproduce this issue in our latest Nightly build, only something a lot worse happens now. Please see the video.
Reporter | ||
Comment 4•3 months ago
|
||
This is the only error in Console:
Uncaught (in promise) TypeError: can't access property "expanded", this._sidebarMain is undefined
toggleExpanded chrome://browser/content/sidebar/browser-sidebar.js:1013
hide chrome://browser/content/sidebar/browser-sidebar.js:1432
toggleRevampSidebar chrome://browser/content/sidebar/browser-sidebar.js:566
Updated•3 months ago
|
Updated•3 months ago
|
Comment 5•3 months ago
•
|
||
It looks like this was fixed in the latest Nightly 131.0a1, thanks to Kelly's work in bug 1913157. Rares, can you confirm it also looks like the issue is fixed for you?
I manually tested this in the latest 130 beta and I do see the same issue if you manually flip the sidebar.revamp
pref flipped after enabling the sidebar chatbot in labs (but its otherwise not affected by this bug). Its too late for a beta uplift, and its perhaps a question whether we'd want this fix for a dot release, just knowing that the prefs are out in the wild even though new sidebar isn't officially in labs for 130. Gijs, mardak, any thoughts on this?
Comment 6•3 months ago
|
||
(In reply to Sarah Clements [:sclements] from comment #5)
I manually tested this in the latest 130 beta and I do see the same issue if you manually flip the
sidebar.revamp
pref flipped after enabling the sidebar chatbot in labs (but its otherwise not affected by this bug).
Which issue - the one in comment 0 or the hang shown in Rares' most recent video?
Its too late for a beta uplift, and its perhaps a question whether we'd want this fix for a dot release, just knowing that the prefs are out in the wild even though new sidebar isn't officially in labs for 130. Gijs, mardak, any thoughts on this?
Does a restart fix this?
Comment 7•3 months ago
|
||
(In reply to :Gijs (he/him) from comment #6)
(In reply to Sarah Clements [:sclements] from comment #5)
I manually tested this in the latest 130 beta and I do see the same issue if you manually flip the
sidebar.revamp
pref flipped after enabling the sidebar chatbot in labs (but its otherwise not affected by this bug).Which issue - the one in comment 0 or the hang shown in Rares' most recent video?
Both issues.
Its too late for a beta uplift, and its perhaps a question whether we'd want this fix for a dot release, just knowing that the prefs are out in the wild even though new sidebar isn't officially in labs for 130. Gijs, mardak, any thoughts on this?
Does a restart fix this?
Yes, it does. And to be clear, its only the sidebar toolbar button not working in 130 beta after sidebar.revamp is flipped to true, not the strange split screen from the second video.
Updated•3 months ago
|
Reporter | ||
Comment 8•3 months ago
|
||
This issue still occurs in our latest Nightly build: 20240827213859 , it just has different behavior now (latest screen recording), before It didn't do anything, but now it duplicates the content for some reason.
And yes if we Disable and Enable the Sidebar again from the Firefox Labs it will return to normal and show the actual sidebar but this only happens if we disable and re-enable the Sidebar button from Firefox Labs (about:preferences#experimental)
In Beta we dont have the Sidebar and Vertical tabs checkboxes in Firefox Labs.
Steps to reproduce:
- Enable ChatGPT from Firefox Labs
- Check the Sidebar and Vertical Tabs buttons from the Firefox Labs page
- Click the Sidebar button added to the Toolbar
Comment 9•3 months ago
•
|
||
(In reply to Rares Doghi, Desktop QA from comment #8)
In Beta we dont have the Sidebar and Vertical tabs checkboxes in Firefox Labs.
Sure, but you can set the same prefs from about:config (sidebar.revamp
and sidebar.verticalTabs
).
As long as we don't hang the browser completely (which is sort of what the second screencast looks like) I think we don't need to worry about this for 130. On macOS at least, I don't see a hang. If I follow these steps on a clean profile in Nightly:
Steps to reproduce:
- Enable ChatGPT from Firefox Labs
- Check the Sidebar and Vertical Tabs buttons from the Firefox Labs page
- Click the Sidebar button added to the Toolbar
Then the sidebar closes and immediately reopens when clicking the sidebar button.
Reporter | ||
Comment 10•3 months ago
|
||
If we simply set the sidebar.revamp and sidebar.verticalTabs in Beta from about:config it will not add the sidebar button on the toolbar, after a restart everything works great, so I cant reproduce the issue in 130.
In Nightly if I enable Chat GPT first, and then Click the Sidebar checkbox button and Vertical Tabs from the Firefox Labs, the Sidebar button is displayed on the Toolbar and cause the above issues.
Comment 11•3 months ago
|
||
(In reply to Rares Doghi, Desktop QA from comment #10)
If we simply set the sidebar.revamp and sidebar.verticalTabs in Beta from about:config it will not add the sidebar button on the toolbar, after a restart everything works great, so I cant reproduce the issue in 130.
Yes, but if you drag the sidebar button into the nav bar in order to click the button that's where I see the issue in beta. I don't see a hang, just that the button doesn't work to toggle the sidebar with the prefs flipped until after a restart.
Comment 12•3 months ago
|
||
Rares, sorry where are we at with this? Are you still seeing an issue in Nightly?
Reporter | ||
Comment 13•2 months ago
|
||
Yes this issue still occurs in our latest Nightly build 132.0a1 (2024-09-04). @Sarah
Comment 14•2 months ago
|
||
(In reply to Rares Doghi, Desktop QA from comment #4)
Uncaught (in promise) TypeError: can't access property "expanded", this._sidebarMain is undefined
toggleExpanded chrome://browser/content/sidebar/browser-sidebar.js:1013
hide chrome://browser/content/sidebar/browser-sidebar.js:1432
toggleRevampSidebar chrome://browser/content/sidebar/browser-sidebar.js:566
The entrypoint is the sidebar.revamp pref change handler from bug 1906140, and it's newly calling into toggleExpanded from bug 1899580. It's not specific to chatbot -- having any sidebar open goes through this code path when enabling sidebar (or generally flipping sidebar.revamp).
Previously hide() had this.sidebarMain.expanded = …
but now it calls toggleExpanded() doing this._sidebarMain.expanded = …
Basically, the sidebarMain
getter wasn't accessed before to initialize _sidebarMain
Comment 15•2 months ago
|
||
Set release status flags based on info from the regressing bug 1899580
:sfoster, since you are the author of the regressor, bug 1899580, could you take a look?
For more information, please visit BugBot documentation.
Assignee | ||
Comment 16•2 months ago
|
||
Thanks for tracking that down :marak, I can take this.
Updated•2 months ago
|
Assignee | ||
Comment 17•2 months ago
|
||
Comment 18•2 months ago
|
||
Comment 19•2 months ago
|
||
bugherder |
Comment 20•2 months ago
|
||
The patch landed in nightly and beta is affected.
:sfoster, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- If no, please set
status-firefox132
towontfix
.
For more information, please visit BugBot documentation.
Reporter | ||
Comment 21•2 months ago
|
||
Verified as fixed in our latest Nightly 133.0a1 (2024-10-04).
Assignee | ||
Comment 22•1 month ago
|
||
(In reply to BugBot [:suhaib / :marco/ :calixte] from comment #20)
The patch landed in nightly and beta is affected.
:sfoster, is this bug important enough to require an uplift?
No I think this is intentionally wontfix for 132.
Updated•1 month ago
|
Description
•