Closed Bug 1947526 Opened 1 month ago Closed 1 month ago

sidebar.visibility pref gets reset after each browser restart

Categories

(Firefox :: Sidebar, defect, P1)

defect

Tracking

()

VERIFIED FIXED
137 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 --- unaffected
firefox135 --- unaffected
firefox136 --- unaffected
firefox137 --- verified

People

(Reporter: kcochrane, Assigned: sfoster)

References

(Regressed 1 open bug, Regression)

Details

(Keywords: regression, Whiteboard: [fidefe-sidebar])

Attachments

(2 files)

When using vertical tabs, if you set the visibility for the sidebar to expand on hover or always hide, then restart the browser, the sidebar.visibility pref gets reset to "always-show" after every browser restart.

Priority: -- → P1

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

:sfoster, since you are the author of the regressor, bug 1944931, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Thanks, I think I see the issue and shouldn't be hard to fix. This call to handleVerticalTabsPrefChange from SidebarManager's init is going to unconditionally set the visibility pref back to its default at startup, regardless of what the user might have customized it to be.

Assignee: nobody → sfoster
Severity: -- → S3
Flags: needinfo?(sfoster)
Attachment #9465612 - Attachment description: Bug 1947526 - Preserve user's visibility pref value when switching to vertical tabs. r?#sidebar-reviewers! → Bug 1947526 - Preserve user's visibility pref value and fix default expanded state when switching to vertical tabs. r?#sidebar-reviewers!
Pushed by sfoster@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8f7deb04827b Preserve user's visibility pref value and fix default expanded state when switching to vertical tabs. r=sidebar-reviewers,nsharpley,kcochrane
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 137 Branch
Flags: qe-verify+

:sfoster could you add a beta uplift request on this when ready, since it's a regression from Bug 1944931

Flags: needinfo?(sfoster)
  • Make sure we don't overwrite a user's choice to hide-sidebars in vertical tabs at startup
  • Roll in a fix to bug 1947257 and ensure the launcher is initially expanded when enabling vertical tabs

Original Revision: https://phabricator.services.mozilla.com/D237849

Attachment #9466189 - Flags: approval-mozilla-beta?

beta Uplift Approval Request

  • User impact if declined: Subpar user experience
  • Code covered by automated testing: yes
  • Fix verified in Nightly: no
  • Needs manual QE test: yes
  • Steps to reproduce for manual QE testing: See bug comments
  • Risk associated with taking this patch: Medium
  • Explanation of risk level: Its contained to sidebar code and has test coverage
  • String changes made/needed: No
  • Is Android affected?: no

Hi Donal, I just rebased this on beta and resolved the merge conflicts for Sam (he's in PST). It should be good to go!

Flags: needinfo?(sfoster) → needinfo?(dmeehan)
Flags: needinfo?(dmeehan)
Attachment #9466189 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9466189 - Flags: approval-mozilla-beta+ → approval-mozilla-beta-
Regressions: 1947952
Attachment #9466189 - Attachment description: Bug 1947526 - Preserve user's visibility pref value and fix default expanded state when switching to vertical tabs. → WIP: Bug 1947526 - Preserve user's visibility pref value and fix default expanded state when switching to vertical tabs.
Attachment #9466189 - Attachment description: WIP: Bug 1947526 - Preserve user's visibility pref value and fix default expanded state when switching to vertical tabs. → Bug 1947526 - Preserve user's visibility pref value and fix default expanded state when switching to vertical tabs.
Regressions: 1948457
Attachment #9466189 - Flags: approval-mozilla-beta- → approval-mozilla-beta+

Backed out from mozilla-beta for causing bc failures @ browser_pinnedTabs.js

TEST-UNEXPECTED-FAIL | browser/components/tabbrowser/test/browser/tabs/browser_pinnedTabs.js | uncaught exception - ResizeObserver loop completed with undelivered notifications. at :0:0
Flags: needinfo?(sfoster)
QA Whiteboard: [qa-triaged]

Reproduced the issue on Firefox 137.0a1 (2025-02-11) by following the infos provided in Comment 0 on macOS 15.3.1.

The issue is fixed on Firefox 137.0a1 (2025-02-16). Tests were performed on macOS 15.3.1, Ubuntu 24.04 and Windows 11.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-triaged]
Flags: qe-verify+

Setting 136 back to affected since this was backed out after introducing test failures

Since this didn't make it in to the Monday beta build, I'm cancelling this request as it seems to risky to keep trying at this stage.

Flags: needinfo?(sfoster)
Attachment #9466189 - 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: