Closed Bug 1956909 Opened 27 days ago Closed 20 days ago

Sidebar expand on hover jumpy after browser close / reopen

Categories

(Firefox :: Sidebar, defect, P1)

Desktop
All
defect

Tracking

()

VERIFIED FIXED
138 Branch
Tracking Status
firefox-esr128 --- unaffected
firefox136 --- unaffected
firefox137 --- unaffected
firefox138 --- verified
firefox139 --- verified

People

(Reporter: kcochrane, Assigned: kcochrane)

References

(Blocks 1 open bug, Regression)

Details

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

Attachments

(4 files)

After changes in bug 1950419, when enabling expand on hover, if the user then closes and reopens the browser, expand on hover is jumpy because it's calculating the collapsed sidebar width as 0 (my guess as it's checking before it's being rendered).
Workarounds for this include:

  • Toggling Expand on hover off/on in the Customize panel
  • Expanding/collapsing the sidebar using the toolbar toggle button

STR:
Enable the new sidebar and Expand on hover
Fully close the browser and then reopen it
Notice how the expand on hover effect is now jumpy until you use one of the workarounds mentioned above

Blocks: 1930188
Assignee: nobody → kcochrane
Status: NEW → ASSIGNED

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

Pushed by kcochrane@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7ea4a6649c26 Prevent expand on hover jumping animation after browser restart r=sidebar-reviewers,nsharpley
Status: ASSIGNED → RESOLVED
Closed: 26 days ago
Resolution: --- → FIXED
Target Milestone: --- → 138 Branch

Hmm I'm able to reproduce this on latest central today. Trying to see what's caused it.

Flags: needinfo?(atrif)

I'm gonna reopen this, but I've just checked Beta v138.0b1, and I can't reproduce there at least. We must have since added something in Nightly to reintroduce it for 139.

Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attached image 1956909.gif

Hello! Unfortunately, I can reproduce this with 139.0a1 (2025-04-01) and with 138.0b1 as well on Windows 10x64 and macOS 12. Attached a screen recording. I also took a treeherder build from comment 4, and the issue is present on that build.
Note that the issue does not happen when Firefox is restarted, the issue happens when Firefox is closed using X or Quit Firefox and then reopened. If more information is needed, please let me know.

Flags: needinfo?(atrif)
Has STR: --- → yes
OS: Unspecified → All
Hardware: Unspecified → Desktop
Flags: qe-verify+

It seems that this also happens after opening new windows or new private windows and then hovering over the sidebar launcher on them.

Pushed by kcochrane@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/98b869d84403 Prevent expand on hover jumping animation after browser restart r=tabbrowser-reviewers,sidebar-reviewers,jsudiaman,nsharpley

Comment on attachment 9476675 [details]
Bug 1956909 - Prevent expand on hover jumping animation after browser restart

Beta/Release Uplift Approval Request

  • User impact if declined/Reason for urgency: After every full browser close/reload users with expand on hover enabled will experience a choppy animation on expand/collapse of the sidebar
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: Enable the new sidebar and expand on hover. Fully close out the browser and then reopen it. Ensure that the animation is still smooth when expanding/collapsing.
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Small JS change
  • String changes made/needed:
  • Is Android affected?: No
Attachment #9476675 - Flags: approval-mozilla-beta?
Severity: -- → S3
Priority: -- → P1
Status: REOPENED → RESOLVED
Closed: 26 days ago20 days ago
Resolution: --- → FIXED
QA Whiteboard: [qa-triaged]

Reproduced the issue with Firefox 138.0b2 on Windows 10x64. Closing and reopening Firefox or opening a new window will cause the expand on hover feature to have a jumpy animation.
The issue is verified fixed with Firefox 139.0a1 (2025-04-03) on Windows 10x64, macOS 12 and Ubuntu 24. The jumpy animation with expand on hover is no longer present after closing and reopening Firefox or after opening a new window/ private window.

Comment on attachment 9476675 [details]
Bug 1956909 - Prevent expand on hover jumping animation after browser restart

Approved for 138.0b4

Attachment #9476675 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Verified fixed with Firefox 138.0b4 on Windows 10x64, macOS 12 and Ubuntu 24. The jumpy animation with expand on hover is no longer present after closing and reopening Firefox or after opening a new window/ private window.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-triaged]
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: