Closed Bug 1956330 Opened 1 year ago Closed 1 year ago

Extension sidebar panel broken after reopening the new sidebar while the extension panel was still the one selected

Categories

(Firefox :: Sidebar, defect, P1)

defect

Tracking

()

RESOLVED FIXED
139 Branch
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.revamp pref 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:

See Also: → 1954056

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.

Severity: -- → S3
Priority: -- → P1
Assignee: nobody → jsudiaman
Status: NEW → ASSIGNED
Assignee: jsudiaman → nobody
Status: ASSIGNED → NEW
Assignee: nobody → sfoster
Status: NEW → ASSIGNED

Clearing need-info. We have this triaged as P1.

Flags: needinfo?(sfoster)

Set release status flags based on info from the regressing bug 1921536

Pushed by sfoster@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9e0922e2fa4c Ensure extensions' sidebarAction get loaded into the panel when toggling the sidebar. r=sidebar-reviewers,jsudiaman

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!
Flags: needinfo?(sfoster)
Pushed by sclements@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/741b3b342412 Ensure extensions' sidebarAction get loaded into the panel when toggling the sidebar. r=sidebar-reviewers,jsudiaman,sclements
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 139 Branch
Attachment #9478079 - Flags: approval-mozilla-beta?

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

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.

Flags: needinfo?(sfoster)
Attachment #9478079 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: