Closed Bug 2058815 Opened 4 months ago Closed 3 months ago

[Linux] In Trackers Blocked "See All" panel, the scrollbar and some of the content run off the bottom of the menu-popup

Categories

(Core :: Widget: Gtk, defect)

defect

Tracking

()

RESOLVED FIXED
155 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr140 --- wontfix
firefox-esr153 --- wontfix
firefox153 --- wontfix
firefox154 --- wontfix
firefox155 --- fixed

People

(Reporter: dholbert, Assigned: emilio, NeedInfo)

References

(Regression)

Details

(Keywords: perf-alert, regression)

Attachments

(3 files, 1 external file)

STR:

  1. (optional but encouraged): use a high "scale" factor in your desktop zoom settings (or a low resolution), so that you've got a relatively limited screen height to work with. (Not a requirement, but makes the bug easier to trigger/see.)
  2. Visit a site with lots of tracking content, e.g. https://www.huffpost.com/
  3. Wait 15 seconds or so for the site to load and for Firefox to block a lot of trackers.
  4. Click the shield icon in the Firefox URL bar.
  5. Click "See all".
  6. Click the "Cross-Site Tracking Cookies" and use mousewheel/two-finger scrolling to scroll to the bottom of the panel, paying special attention to the scrollbar.

ACTUAL RESULTS:
The scrollbar scrolls partially or entirely off the bottom of the menu-popup.
And depending on your browser position, you can see that there's some content that runs off the bottom of the menu-popup as well.

EXPECTED RESULTS:
Scrollbar should stop when it reaches the bottom of the menu-popup.
No content should run off the bottom of the menu-popup.

I'm using Nightly 155.0a1 (2026-07-27) on Ubuntu 26.04.

This reproduces regardless of whether browser.nova.enabled is true or false (i.e. this is not a regression from enabling the nova pref)

Summary: In Trackers Blocked "See All" panel, the scrollbar runs off the bottom of the panel → In Trackers Blocked "See All" panel, the scrollbar and some of the content run off the bottom of the menu-popup
Attached video screencast of bug —

Just to prove there's no HiDPI requirement here: here's a screencast I just captured with a 100% desktop-scale level and 1440x1080 screen resolution. Note that I'm positioning my Firefox window such that the URL bar is just a bit higher than the middle of the screen, so that my menu (anchored to the shield button) only has access to ~half of the screen height.

This limitation shouldn't be a problem in theory, of course -- it just means we'll have more content to scroll in a smaller space -- but for some reason it ends up with some content running off the bottom of the menu(barely visible as the very tops of some letters), and the scrollbar itself running off the bottom of the menu.

This may be a regression; I don't think I'm able to repro with Nightly 2025-01-02. (The UI is a bit different, but there are similar long lists of "Cross-Site Tracking Cookies" and "Tracking Content" that show up for huffpost, and we constrain the content and scrollbar to fit in the menu, when I test it in the way that I did in my screencasts.)

I'll see if I can come up with a regression range tomorrow.

Flags: needinfo?(dholbert)
QA Whiteboard: [qa-triage-done-c155/b154] [qa-investig-needed-c155/b154]

Hmm, so with HiDPI enabled, I'm seeing the regression go further back, to this range:
Last good revision: a7134d792577d5d0529bf81b769c32138f7bb0c0 (2024-03-16)
First bad revision: 47d63b18299914bf2eecdeb64fe8df0a52605aec (2024-03-17)
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=a7134d792577d5d0529bf81b769c32138f7bb0c0&tochange=47d63b18299914bf2eecdeb64fe8df0a52605aec
...which implicates bug 1871515, at least for my Wayland + HiDPI setup (with 166% desktop scaling).

Lemme see if I get a different range with 100% scale factor.

Flags: needinfo?(dholbert)

Same regression range with 100% scale factor.
a7134d792577d5d0529bf81b769c32138f7bb0c0 (2024-03-16) is "Good", 47d63b18299914bf2eecdeb64fe8df0a52605aec (2024-03-17) is "bad".

Looks like a regression from bug 1871515.

Regressed by: 1871515
Summary: In Trackers Blocked "See All" panel, the scrollbar and some of the content run off the bottom of the menu-popup → [Wayland] In Trackers Blocked "See All" panel, the scrollbar and some of the content run off the bottom of the menu-popup

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

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

For more information, please visit BugBot documentation.

Actually it looks like I only get that regression range if I run with MOZ_ENABLE_WAYLAND=0 (which I typically do for mozregression to work around a startup crash that a range of nightlies hits otherwise).

Without that, 2024-03-17 and 2025-01-02 are both fine (because rather than clipping, they allow their panel to shift on-screen, away from the button, to fit whatever minimum size their contents want to be).

Let me run mozregression again without MOZ_ENABLE_WAYLAND=0 and see what I get...

tl-dr, this regressed separately on non-wayland vs. wayland configuration:

comment 5 has the regression range for non-wayland (running with MOZ_ENABLE_WAYLAND=0 in my case, but I'm pretty sure the results are the same with X11 as your window-manager).

For the regression range in wayland-enabled Firefox, I ran mozregression in an Ubuntu 24.04 VM, and I got this more-recent regression range:
Last good revision: a14c56cc48c89aec2217887958c25216fa2a0c0a (2025-06-15)
First bad revision: 87e010ebac62c5bed9a41c64e63df5be347f65e6 (2025-06-16)
https://hg-edge.mozilla.org/mozilla-central/pushloghtml?fromchange=a14c56cc48c89aec2217887958c25216fa2a0c0a&tochange=87e010ebac62c5bed9a41c64e63df5be347f65e6

And in there, I'm guessing this is a regression from bug 1971362.

Regressed by: 1971362
Summary: [Wayland] In Trackers Blocked "See All" panel, the scrollbar and some of the content run off the bottom of the menu-popup → [Linux] In Trackers Blocked "See All" panel, the scrollbar and some of the content run off the bottom of the menu-popup
Component: Protections UI → Widget: Gtk
Product: Firefox → Core

I think this is a front-end issue. If I remove this declaration then stuff is sized appropriately.

Daniel do you know what might be going on? The children have max-height: 100% but that's presumably considered indefinite or so?

Flags: needinfo?(emilio) → needinfo?(dholbert)

I blamed this align-items: flex-start and it goes back to bug 1392340.

See Also: → 1392340

Before bug 1871515 we used to set a (maybe wrong) fixed height, so that's why this didn't show up on X11.

This goes effectively back to bug 1392340, but tons of changes have
happened since (including the move to flex layout and the regressing
bugs).

It doesn't seem to be needed. I tested by bumping up the transition
duration and transitioning between the open tracker panel opening and
back (which trigger this "very different height" case), and smoketesting
other panels.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Pushed by ealvarez@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/76b81a0f1743 https://hg.mozilla.org/integration/autoland/rev/013f1bd6c47c Remove unnecessary alignment declaration that causes indefinite block sizes. r=desktop-theme-reviewers,dao
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 155 Branch

The patch landed in nightly and beta is affected, along with ESR.
:emilio, is this bug important enough to require an uplift?

For more information, please visit BugBot documentation.

Flags: needinfo?(emilio)

Probably can ride the trains.

Perfherder has detected a build_metrics performance change from push 013f1bd6c47ce94d4176c92705ded739e88d4506.

No action is required from the author; this comment is provided for informational purposes only.

Improvement Test Platform Options Absolute values [old vs new]
93% sccache cache_write_errors linux64 626.92 -> 45.75
92% sccache cache_write_errors windows2012-64 540.42 -> 45.92
75% sccache cache_write_errors linux64 asan opt 748.29 -> 188.75

Need Help or Information?

If you have any questions, please reach out to afinder@mozilla.com. Alternatively, you can find help on Slack by joining #perf-help, and on Matrix you can find help by joining #perftest.

Details of the alert can be found in the alert summary, including links to graphs and comparisons for each of the affected tests.

Keywords: perf-alert
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: