Extension sidebar panel broken after reopening the new sidebar while the extension panel was still the one selected
Categories
(Firefox :: Sidebar, defect, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr128 | --- | unaffected |
| firefox136 | --- | unaffected |
| firefox137 | --- | unaffected |
| firefox138 | --- | fixed |
| firefox139 | --- | fixed |
People
(Reporter: rpl, Assigned: sfoster)
References
(Regression)
Details
(Keywords: regression, Whiteboard: [fidefe-sidebar])
Attachments
(2 external files)
STR:
- enable the new sidebar panel design without vertical tabs (e.g. flipping only the
sidebar.revamppref to true) - install an extension providing a sidebar panel (e.g. tree style tab extension)
- click on the extension button that is included in the redesigned sidebar (which does currently close the sidebar completely, not just the extension sidebar panel)
- click on the "expand/collapse sidebar" toolbar button to reopen the sidebar panel
- Expected Behavior: the sidebar panel is reopened and the extension panel is rendered as expected and it is not in a broken state
- Actual Behavior: the sidebar panel is reopened, the extension panel is open but it is empty and in a broken state
The following error is logged in the Browser Console when the STR described above does trigger the issue:
Uncaught (in promise) TypeError: SidebarController.browser.contentWindow.loadPanel is not a function
onload chrome://browser/content/parent/ext-sidebarAction.js:132
_loadSidebarExtension chrome://browser/content/sidebar/browser-sidebar.js:1335
showInitially chrome://browser/content/sidebar/browser-sidebar.js:1665
By using the command mach mozregression -g 2025-03-01 -b 2025-03-25 --addon treestyletab@piro.sakura.ne.jp.xpi -a "about:addons" --pref "sidebar.revamp:true", mozregression bisected the regressing change to: https://hg-edge.mozilla.org/integration/autoland/rev/deb757393ed3a48a09c830ee109b3a4b2eb758e8
Additional question:
- When the user clicks the toolbar button associated to the same extension, only the extension sidebar panel is closed while the sidebar is kept visible, whereas a user clicking the sidebar icon button associated to the same extension is currently closing the sidebar completely, should the sidebar icon button associated to the extension panel also closing only the panel while keeping the sidebar visible?
Screencast of this STR:
Updated•1 year ago
|
Comment 1•1 year ago
|
||
Set release status flags based on info from the regressing bug 1921536
:sfoster, since you are the author of the regressor, bug 1921536, could you take a look? Also, could you set the severity field?
For more information, please visit BugBot documentation.
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
| Assignee | ||
Comment 2•1 year ago
|
||
Clearing need-info. We have this triaged as P1.
Comment 3•1 year ago
|
||
Set release status flags based on info from the regressing bug 1921536
| Assignee | ||
Comment 4•1 year ago
|
||
Comment 6•1 year ago
|
||
Backed out for causing bc failures in /browser_toolbar_sidebar_button.js
- Backout link
- Push with failures
- Failure Log
- Failure line: TEST-UNEXPECTED-FAIL | browser/components/sidebar/tests/browser/browser_toolbar_sidebar_button.js | Application shut down (without crashing) in the middle of a test!
Comment 8•1 year ago
|
||
| bugherder | ||
| Assignee | ||
Comment 9•1 year ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D244269
Updated•1 year ago
|
Comment 10•1 year ago
|
||
beta Uplift Approval Request
- User impact if declined: In the new sidebar, extensions with sidebar panels show as empty after toggling the sidebar
- Code covered by automated testing: yes
- Fix verified in Nightly: no
- Needs manual QE test: no
- Steps to reproduce for manual QE testing: See comment #0 in bug 1956330
- Risk associated with taking this patch: Low
- Explanation of risk level: Small front-end patch to the logic when handling a click on the sidebar's toolbar button
- String changes made/needed: None
- Is Android affected?: no
| Assignee | ||
Comment 11•1 year ago
|
||
Clearing need-info. Thanks for the backout, the test was correct and there was a bug - which I got fixed in the revision that landed.
Updated•1 year ago
|
Comment 12•1 year ago
|
||
| uplift | ||
Updated•1 year ago
|
Description
•