Closed Bug 1722480 Opened 3 years ago Closed 3 years ago

[Wayland] Mostly unresponsive when starting with Light/Dark theme that is opposite system theme

Categories

(Core :: Widget: Gtk, defect)

Firefox 92
defect

Tracking

()

RESOLVED FIXED
92 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox90 --- unaffected
firefox91 --- unaffected
firefox92 + fixed

People

(Reporter: ke5trel, Assigned: emilio)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(1 file)

STR:

  1. Start with MOZ_ENABLE_WAYLAND=1 on Ubuntu 21.04 with default Yaru system theme.
  2. Enable Dark theme in Firefox and restart.

Main process uses 100% CPU core and interface is laggy and sluggish about 50% of the time. Does not happen with Wayland disabled or using Light/Dark theme that matches system, for example Dark theme with Yaru-dark.

Starting with matching theme and then changing it at runtime causes some popups to stop appearing (eg addon installation).

Regression window:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=8fe101d17fe726e10a9a840e5e12ac95f0e48ae7&tochange=9ac290ec5884fd52bb6c16e9794da5b42f211cbb

Regressed by Bug 1718755.

Can you take a profile of it? Also does it happen with X11/xwayland?

Flags: needinfo?(ke5trel)

The interface is extremely slow and too unresponsive for capturing a profile, I can stop the capture but it gets stuck loading the resulting tab. It does not happen with X11/xwayland.

Flags: needinfo?(ke5trel)
Summary: [Wayland] Sluggish performance when starting with Light/Dark theme that is opposite system theme → [Wayland] Mostly unresponsive when starting with Light/Dark theme that is opposite system theme

Ok, thanks, I'll try to reproduce this.

Flags: needinfo?(emilio)
Assignee: nobody → emilio
Flags: needinfo?(emilio)

RestoreSystemTheme() can trigger gtk theme name changes which can
trigger invalidations again. The other theme changes
(WithAltThemeConfigured and MatchFirefoxThemeIfNeeded) already did this
correctly.

Attachment #9233283 - Attachment description: Bug 1722480 - Ensure nsLookAndFeel::EnsureInit doesn't trigger any potentially invalidation. r=stransky → Bug 1722480 - Ensure nsLookAndFeel::EnsureInit doesn't trigger any reentrant invalidation. r=stransky
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ec24ea99da3f
Ensure nsLookAndFeel::EnsureInit doesn't trigger any reentrant invalidation. r=stransky
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: