Closed Bug 1938249 Opened 2 months ago Closed 5 days ago

[Horizontal tabs mode] Sidebar button should show/hide the sidebar

Categories

(Firefox :: Sidebar, enhancement, P1)

enhancement

Tracking

()

VERIFIED FIXED
136 Branch
Tracking Status
firefox136 --- verified

People

(Reporter: asafko, Assigned: nsharpley, NeedInfo)

References

(Blocks 1 open bug, Regressed 1 open bug)

Details

(Whiteboard: [fidefe-sidebar])

Attachments

(1 file)

Current behavior in horizontal tabs mode:

  1. Clicking on the collapsed sidebar expands it to display icons with labels.
  2. Clicking on the expanded sidebar collapses it back to icon-only view.

Amended desired behavior in horizontal tabs mode:

  1. Expanded sidebar state is no longer available in horizontal tabs mode.

  2. Clicking on the sidebar button hides the collapsed sidebar or returns it into view, if it was already hidden.
    1a. If a panel was open when the collapsed sidebar was hidden, the sidebar returns into view with the same panel open.

  3. The sidebar button tooltip in the horizontal tabs mode is:
    Show sidebar (%platform-specific-keyboard shortcut%)
    Hide sidebar (%platform-specific-keyboard shortcut%)

Tagging Katie here to review the strings and check if they need any updates.

See Also: → 1921536
Whiteboard: [fidefe-sidebar]
Flags: needinfo?(klower)

A note that Kelly's patch for expand-on-hover in bug 1930201 removes the auto-collapsing behavior.

Priority: -- → P1
Assignee: nobody → nsharpley

Nikki, there's some changes to the Customize Sidebar settings in bug 1939917 that would probably make sense to do in this patch. What do you think?

Sidebar settings Controls: Checkboxes
*Options for horizontal tabs mode:
Show sidebar
Show sidebar on the right

*Options for vertical tabs mode:
Expand sidebar on hover
Show sidebar on the right

I think as part of this change, if a user switches from "expand on hover" setting to "show sidebar" then vertical tabs should also revert to horizontal tabs to avoid the issue now where a user can get into a state of having the sidebar hidden and no tabs.

Flags: needinfo?(nsharpley)

Agreed! I'll include those changes in this bug.

I think as part of this change, if a user switches from "expand on hover" setting to "show sidebar" then vertical tabs should also revert to horizontal tabs to avoid the issue now where a user can get into a state of having the sidebar hidden and no tabs.

I think that makes sense.

Flags: needinfo?(nsharpley)

Just confirming that, for horizontal tab users, the strings that Ania noted are good to go!

The sidebar button tooltip in the horizontal tabs mode is:
Show sidebar (%platform-specific-keyboard shortcut%)
Hide sidebar (%platform-specific-keyboard shortcut%)

Blocks: 1941625
Attachment #9460046 - Attachment description: WIP: Bug 1938249 - Disable expanded sidebar behaviour for horizontal tabs mode → Bug 1938249 - Disable expanded sidebar behaviour for horizontal tabs mode r=#sidebar-reviewers
Pushed by nsharpley@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/125d12cc3cdb Disable expanded sidebar behaviour for horizontal tabs mode r=sidebar-reviewers,desktop-theme-reviewers,dao,jsudiaman,kcochrane

Backed out for causing bc failures @ browser_sidebar_keys.js

Backout link: https://hg.mozilla.org/integration/autoland/rev/4aaa5b3d2ce735ac377e027d5f5826d0767c4bb5

Push with failures

Failure log -> TEST-UNEXPECTED-FAIL | browser/base/content/test/sidebar/browser_sidebar_keys.js | Sidebar widget background should appear unchecked - 0.30000001192092896 == 0

TEST-PASS | browser/base/content/test/sidebar/browser_sidebar_keys.js | Sidebar is closed - 
[task 2025-01-24T22:21:55.433Z] 22:21:55     INFO - Buffered messages finished
[task 2025-01-24T22:21:55.433Z] 22:21:55     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/sidebar/browser_sidebar_keys.js | Sidebar widget background should appear unchecked - 0.30000001192092896 == 0 - 
[task 2025-01-24T22:21:55.433Z] 22:21:55     INFO - Stack trace:
[task 2025-01-24T22:21:55.433Z] 22:21:55     INFO - chrome://mochitests/content/browser/browser/base/content/test/sidebar/browser_sidebar_keys.js:test_sidebar_in_customize_mode:107
[task 2025-01-24T22:21:55.433Z] 22:21:55     INFO - chrome://mochikit/content/browser-test.js:handleTask:1147
[task 2025-01-24T22:21:55.433Z] 22:21:55     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1219
[task 2025-01-24T22:21:55.433Z] 22:21:55     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1360
[task 2025-01-24T22:21:55.433Z] 22:21:55     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1136
[task 2025-01-24T22:21:55.433Z] 22:21:55     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1058
[task 2025-01-24T22:21:55.433Z] 22:21:55     INFO - Leaving test bound test_sidebar_in_customize_mode
[task 2025-01-24T22:21:55.735Z] 22:21:55     INFO - GECKO(1059) | MEMORY STAT | vsize 11469MB | residentFast 524MB | heapAllocated 266MB
[task 2025-01-24T22:21:55.736Z] 22:21:55     INFO - TEST-OK | browser/base/content/test/sidebar/browser_sidebar_keys.js | took 1950ms
Flags: needinfo?(nsharpley)
Pushed by nsharpley@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2e8e6c3c9ad8 Disable expanded sidebar behaviour for horizontal tabs mode r=sidebar-reviewers,desktop-theme-reviewers,dao,jsudiaman,kcochrane

Backed out for causing bc failures.

  • Backout link
    ————————————————————————————————————
    Bc failures @browser_glean_sidebar.js.
  • Push with failures
  • Failure Log
    ————————————————————————————————————
    Bc failures @browser_toolbarButtonKeyPress.js
  • Push with failures
  • Failure Log
Pushed by nsharpley@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ead9919b0da6 Disable expanded sidebar behaviour for horizontal tabs mode r=sidebar-reviewers,desktop-theme-reviewers,dao,jsudiaman,kcochrane
Backout by abutkovits@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/89dba37a7a04 Backed out changeset ead9919b0da6 for causing failures at test_restore_sidebar.py. CLOSED TREE
Pushed by nsharpley@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ab0b1bfb4d28 Disable expanded sidebar behaviour for horizontal tabs mode r=sidebar-reviewers,desktop-theme-reviewers,dao,jsudiaman,kcochrane,sessionstore-reviewers
Status: NEW → RESOLVED
Closed: 5 days ago
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch
Regressions: 1944576
Regressions: 1944627

Verified as fixed in our latest Nightly build 136.0a1 (2025-01-30).

Status: RESOLVED → VERIFIED
Regressions: 1944842
No longer regressions: 1944842
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: