Open Bug 2090576 Opened 13 days ago Updated 13 days ago

Changing ui.useOverlayScrollbars at runtime leaves scrollbar layout stale until something else reflows

Categories

(Core :: Widget, defect)

defect

Tracking

()

People

(Reporter: dao, Unassigned)

References

Details

Setting ui.useOverlayScrollbars in a running browser flips (-moz-overlay-scrollbars), but layout that depends on the scrollbar style (e.g. the space classic scrollbars take) isn't recomputed until something else causes a reflow.

IntPrefChanged in widget/nsXPLookAndFeel.cpp notifies ThemeChangeKind::MediaQueriesOnly for every integer pref except ui.systemUsesDarkTheme. By contrast, kMediaQueryPrefs gives widget.gtk.overlay-scrollbars.enabled, which feeds the same value on GTK, a style-and-layout change. ui.useOverlayScrollbars probably wants ThemeChangeKind::StyleAndLayout as well.

Found while documenting look-and-feel overrides in D340428, where emilio suggested fixing this rather than documenting it.

Severity: -- → S4
You need to log in before you can comment on or make changes to this bug.