Closed Bug 1832688 Opened 3 years ago Closed 3 years ago

Window completely black on first startup on Ubuntu 23.04, needs restart

Categories

(Core :: Widget: Gtk, defect)

Firefox 113
Desktop
Linux
defect

Tracking

()

RESOLVED DUPLICATE of bug 1788205

People

(Reporter: celian.godefroid, Unassigned)

Details

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

Steps to reproduce:

Start Firefox after starting the computer.

Actual results:

Screen is completely black, can be moved with key shortcuts, but no information displayed, a restart is needed. The Firefox session before computer shutdown appears, not a new session. Happens since Ubuntu 23.04 update.

Expected results:

The window should have opened correctly.

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core

Thanks for the report!
This is likely a Gnome Xwayland bug (bug 1788205) and should be fixed by https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2970.
Please test if this problem can be avoided by starting Firefox with this command:
$ MOZ_ENABLE_WAYLAND=1 snap run firefox

To use MOZ_ENABLE_WAYLAND=1 by default, you can either:
a) Switch to Firefox Nightly which already uses MOZ_ENABLE_WAYLAND=1 by default (bug 1543600):
sudo snap refresh --channel=edge firefox
b) Add export MOZ_ENABLE_WAYLAND=1 to the end of /home/yourusername/.profile to set it permanently for your user account.
$ echo -e "\nexport MOZ_ENABLE_WAYLAND=1" >> ~/.profile
It takes effect after logout&login or a reboot.

OS: Unspecified → Linux
Hardware: Unspecified → Desktop
Summary: Window completely black on first startup, needs restart → Window completely black on first startup on Ubuntu 23.04, needs restart
Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Duplicate of bug: 1788205
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.