Closed Bug 1829390 Opened 2 years ago Closed 2 years ago

firefox cold run cause to black screen in ubuntu linux (wayland)

Categories

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

Firefox 112
defect

Tracking

()

RESOLVED DUPLICATE of bug 1788205

People

(Reporter: ali.hosseinzadeh, Unassigned)

References

Details

Steps to reproduce:

when ubuntu linux 23.04 (on wayland) cold starts (from restart or after shut down) and the user cold starts Firefox Browser, it cause firefox to freeze and black screen.
the user have to close the firefox and run it again to make things to work as normal.
but this will cause firefox to start without all the previous saved tabs (if "Open previous windows and tabs" option is checked in Firefox setting).

Actual results:

when the user cold starts Firefox Browser in ubuntu linux 23.04 (on wayland) , it cause to firefox freeze and show a big black screen.
the user have to close the firefox and run it again to make things to work as normal.
but this solution make Firefox to start without all the previous saved tabs (if "Open previous windows and tabs" option is checked in Firefox setting). in fact it will clear all the "previous windows and tabs" and pinned tabs and it starts it

Expected results:

it should start without freezing and black screen.
it also should keep and preserve "previous windows and tabs" when the user have checked this option in Firefox's startup setting.

Component: Widget: Gtk
OS: Linux
Hardware: Desktop

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

Please attach your about:config page.
Thanks!

Flags: needinfo?(ali.hosseinzadeh)
Priority: -- → P3
Blocks: 1831711

Thanks for the report!
This is 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
$ MOZ_ENABLE_WAYLAND=1 firefox

To use MOZ_ENABLE_WAYLAND=1 by default, you can either:
a) 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.
b) Switch to Firefox Nightly which already uses MOZ_ENABLE_WAYLAND=1 by default (bug 1543600):
sudo snap refresh --channel=edge firefox
or install the experimental Nightly Debian package: bug 1751153 comment 45

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1788205
Flags: needinfo?(ali.hosseinzadeh)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.