Closed Bug 1706934 Opened 3 years ago Closed 3 years ago

Window content breaks for good with X11 EGL after suspending KWin compositing

Categories

(Core :: Widget: Gtk, defect, P2)

Firefox 89
x86_64
Linux
defect

Tracking

()

RESOLVED DUPLICATE of bug 1712665

People

(Reporter: tempel.julian, Unassigned)

References

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0

Steps to reproduce:

Run Firefox with Webrender & EGL ( MOZ_X11_EGL=1 ) in a Plasma Xorg session with KWin compositing enabled.
Then start a fullscreen application that tells KWin to suspend its compositing (e.g. a game that does so).

Actual results:

When returning to the desktop with the Firefox window (alt + tab or closing the fullscreen application), the content of the Firefox window is completely wrecked. This does not just apply to the website content of the opened tab, but also the menu bar etc. of Firefox are broken for good. It is not able to recover, e.g. by refreshing a page via pressing F5, Firefox needs to be restarted completely in order to be usable again.

Expected results:

Ideally, it shouldn't lose any window content, or at least only the website content and should be able to recover after reloading the page (or by itself). This is the case with the GLX backend.

This might be a regression that started with 88 or 87, though I could be mistaken.

Component: Untriaged → General
OS: Unspecified → Linux
Hardware: Unspecified → x86_64
Component: General → Widget: Gtk
Product: Firefox → Core

Can confirm it happens to me on both arch and manjaro with both kwin and kwinft. Tried to replicate it on gnome but it seemed to work fine there, not sure if I just couldn't force gnome to disable compositing (tried forcing mpv and uniengine superposition) or it's a specific kwin-firefox problem.

Priority: -- → P2

Do you mind to report it at KDE bugtracker? (https://bugs.kde.org/) I don't think we have manpower to work on it.

I can drop a report. Though I'm afraid it won't contribute to a solution, as I think this is due to the Firefox X11 implementation not taking measures to maintain its window content integrity beyond X11 compositors toggling on/off. I haven't checked, but I'd assume this also happens when using Picom compositor and closing it while Firefox EGL is running. It doesn't happen on Gnome, as Mutter compositing is always active and it supports fullscreen unredirect, which KWin unfortunately doesn't (and probably never will on Xorg).

Report on KDE tracker: https://bugs.kde.org/show_bug.cgi?id=440154 .
It was closed as an issue with Firefox.

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.