Closed Bug 2007183 Opened 6 months ago Closed 2 months ago

Hide sidebar launcher on panel close if it was hidden prior to panel open

Categories

(Firefox :: Sidebar, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
151 Branch
Tracking Status
firefox151 --- fixed

People

(Reporter: asafko, Assigned: sfoster)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fidefe-sidebar])

Attachments

(1 file)

As a user who prefers to keep the sidebar in the hidden state (no launcher visible on the screen), if the sidebar launcher is hidden at the moment I open a sidebar panel via a keyboard shortcut or from the Application menu > View > Sidebar, I want the launcher to go back to the hidden state when I close the panel in either of these ways:

  • via a keyboard shortcut,
  • by clicking the X button within the sidebar panel,
  • by going to Application menu > View > Sidebar and unchecking the panel I have open.

Sample STRs:

  • Make sure the sidebar is in the hidden state.
  • Open the history (Ctrl + H) or bookmarks (Ctrl + B) panel via a shortcut.
  • Close the history panel or bookmarks via X button.

Expected result
The panel is closed, and the launcher is hidden.

Actual result as of Firefox 146/December 2025
The panel is closed, and the launcher remains visible.

See Also: → 2001115, 2000489
Whiteboard: [fidefe-sidebar]
Duplicate of this bug: 2001115
Duplicate of this bug: 2000489

The same problem occurs with vertical tabs: I have classic tabs with the sidebar disabled. I enabled vertical tabs and then disabled them. The sidebar was automatically enabled.

Severity: -- → S3
Priority: -- → P2
See Also: 2001115, 2000489
Duplicate of this bug: 2011059

I can take a look at this one.

Assignee: nobody → sfoster

(In reply to Ania from comment #0)

Expected result
The panel is closed, and the launcher is hidden.

What about the case where sidebar.visibility=="hide-sidebar", but the sidebar launcher had been toggled to visible before opening the bookmark panel? Would we expect the launcher to remain visible when closing the panel in that case (which implies a kind of stack of states?)

Flags: needinfo?(asafko)
See Also: → 1924625
  • When the visibility pref is hide-sidebar, we should always return the launcher to its previous hidden-ness after a sidebar panel is closed
  • New test coverage for these scenarios
Pushed by sfoster@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/33d090e11a41 https://hg.mozilla.org/integration/autoland/rev/ba48f4190cde Restore sidebar launcher as shown/hidden when closing a sidebar panel. r=nsharpley
Pushed by agoloman@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/4760831e3beb https://hg.mozilla.org/integration/autoland/rev/577c0db51b49 Revert "Bug 2007183 - Restore sidebar launcher as shown/hidden when closing a sidebar panel. r=nsharpley" for causing bc faiulres @browser_ext_sidebarAction.js.

Backed out for causing bc faiulres @browser_ext_sidebarAction.js.

Flags: needinfo?(sfoster)

(In reply to agoloman from comment #10)

Backed out for causing bc faiulres @browser_ext_sidebarAction.js.

Thanks. Fixed, reviewed and re-queued for landing.

Flags: needinfo?(sfoster)

Clearing need-info for asafko. This was quite simple: we note the visibility (hidden-ness) of the launcher when opening a panel, and when closing a panel, as long as the sidebar.visibility is hide-sidebar, we set the launcher back to the state it was in before opening the panel.

Flags: needinfo?(asafko)
Pushed by sfoster@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/61753985429b https://hg.mozilla.org/integration/autoland/rev/bdbc26bfbefe Restore sidebar launcher as shown/hidden when closing a sidebar panel. r=nsharpley,extension-reviewers,robwu
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch
Regressions: 2027681
QA Whiteboard: [qa-triage-done-c152/b151]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: