Closed Bug 1914154 Opened 8 months ago Closed 7 months ago

Sidebar vertical tabs scrollbar doesn't always autohide

Categories

(Core :: Layout: Scrolling and Overflow, defect)

defect

Tracking

()

VERIFIED FIXED
132 Branch
Tracking Status
firefox132 --- verified

People

(Reporter: muffinresearch, Assigned: emilio)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fidefe-sidebar])

Attachments

(6 files)

Attached image win-scrollbar.png

STR:

  • With sidebar.revamp and sidebar.verticalTabs enabled in Nightly.
  • With enough tabs to be scrollable and move the mouse off of the sidebar and you will find it's possible to have the sidebar scrollbar remain visible.
  • Seems to be a bit easier to reproduce with a longer bar for scrolling and scrolling to the bottom before switching to settings.
  • Note this can be difficult to reproduce and take several attempts to get the issue.

What Happens

The scrollbar sometimes remains visible rather than disappearing.

What should happen

The scrollbar should autohide.

Platforms:

I can reproduce this in Nightly Mac, Windows and Linux. See screenshots.

  • Windows 11: 131.0a1 (2024-08-20) (64-bit)
  • Ubuntu 22.04: 130.0a1 (2024-08-03) (64-bit) - Deb package.
  • Mac OS: 131.0a1 (2024-08-20) (64-bit)
Attached image linux-scrollbar.png
Attached image mac-scrollbar.png
Whiteboard: [fidefe-sidebar]

Does this still reproduce? I have a vague memory of a similar issue being fixed elsewhere recently...

Severity: -- → S3
Flags: needinfo?(scolville)
Priority: -- → P3

I might be thinking of bug 1915599. Not sure if that is relevant here.

I can still reproduce it on mac; If I scroll up and then down and hover over the scrollbar it seems to get stuck in the hover state (even after rebasing on changes from bug 1915599 and with my fix for bug 1913279).

Depends on: 1916954

Playing around with it in the devtools inspect it does seem like removing it does solve the issue, from what I can see. I had added that initially because there was a noticeable gap between the scrollbar and the edge of the container, but now with the changes to the styling its less perceptible.

Looks like bug 1916954 removed the negative margin.

Status: NEW → RESOLVED
Closed: 8 months ago
Flags: needinfo?(scolville)
Resolution: --- → FIXED

I can still repro with a build that includes the negative margin removal.

Status: RESOLVED → REOPENED
Resolution: FIXED → ---

Interesting side note: This isn't reproducible with reduce-motion enabled in OS accessibility settings (accessibility -> display) on OSX. Also the scrollbar seems a lot more snappy with animations off (which is perhaps to be expected) but still worth noting.

Hi Emilio, I was wondering if you'd have any suggestions or thoughts on what could be the cause of this issue? As well as the STR see the note in Comment 10 that reduce motion seems to stop it being triggered.

Flags: needinfo?(emilio)
Depends on: 1918762
Flags: needinfo?(emilio)

For the vertical tab bar, probably due to how it re-implements
scrolling1, we get multiple eTransformBegin state changes, but a
single eTransformEnd.

That ends up with a permanently-positive activity counter, which leaves
the scrollbar visible.

There might be an underlying APZ bug here, not sure if mismatched events
are expected, but it seems other handlers deal with this mostly
correctly, and the fix on layout's end is rather trivial, too, so this
seems worth doing.

Assignee: nobody → emilio
Component: Sidebar → Layout: Scrolling and Overflow
Product: Firefox → Core

The product::component has been changed since the backlog priority was decided, so we're resetting it.
For more information, please visit BugBot documentation.

Priority: P3 → --
Blocks: 1919566
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f33a5b1ae476 Fix how we deal with APZ scrollbar activity. r=hiro
Status: REOPENED → RESOLVED
Closed: 8 months ago7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 132 Branch

I am still able to reproduce the issue intermittently, on Firefox 132.0b5, using macOS 14.7, as described in Comment 5. The scrollbar remains visible even after moving the mouse around.
Also, I can reproduce it on Windows 11 with the same Firefox version if I release the click outside of the tab strip area, after scrolling up or down - please see the attached video - but the scrollbar hides as soon as I move the mouse again.
@emilio, should we reopen this? Thanks in advance!

Flags: needinfo?(emilio)

Can you open another bug? The root cause is very likely different.

Flags: needinfo?(emilio)

(In reply to Emilio Cobos Álvarez (:emilio) from comment #17)

Can you open another bug? The root cause is very likely different.

Yes, of course. Logged bug 1924079.
And regarding this issue, I am unable to reproduce it with Firefox 132.0b5 while following the steps from Comment 0, but I am still able to reproduce it on macOS 14.7 as mentioned in Comment 5. I will attach a video as well. Should we also track this separately?

See Also: → 1924079

@Emilio, regarding Comment 18, should we reopen this ticket as I am still able to reproduce the issue on Firefox 132, on macOS 14.7, as described in Comment 5? Thanks!

Flags: needinfo?(emilio)

The original bug was reproducible on Linux and Windows, and I can't repro it there, so no, separate bug please.

Flags: needinfo?(emilio)

(Please ni? me on the new bug, I think I might know what's going on, hover in macOS scrollbars is generally sticky but we should still clear the stickiness on mouseout...)

Thank you for the confirmation!
I am also unable to reproduce the issue on Firefox 132.0b8 using Windows 11 and Ubuntu 22.04 as described in Comment 0. Marking this verified as fixed.
Logged bug 1925564 for the macOS behavior.

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

Attachment

General

Created:
Updated:
Size: