firefox black window on wayland
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mozilla Firefox |
Unknown
|
Unknown
|
|||
Mutter |
Fix Released
|
Unknown
|
|||
Release Notes for Ubuntu |
Fix Released
|
Undecided
|
Unassigned | ||
mutter (Ubuntu) |
Fix Released
|
High
|
Gunnar Hjalmarsson | ||
Lunar |
Fix Released
|
High
|
Gunnar Hjalmarsson |
Bug Description
[ Impact ]
On some systems, when you open the Firefox snap right after having logged in into an Ubuntu on Wayland session, you are met by a black window. This happens because the FF snap is run under Xwayland, and Xwayland may not be enabled early enough to handle the start of the application properly.
You can easily reproduce the issue in a Wayland session:
* Close Firefox
* Run the command "killall Xwayland" in terminal
* Open Firefox
An upstream mutter change addresses this issue, and the proposed lunar change cherry picks that upstream change as a patch.
[ Test Plan ]
On an updated Ubuntu 23.04:
* Install the mutter related binaries from lunar-proposed
* Reboot and log in to an Ubuntu on Wayland session
* Run the command "killall Xwayland"
* Open the Firefox snap, and find that it starts normally
[ Where problems could occur ]
This is the upstream merge request in question:
https:/
The changes (except for the test related ones) are small, and specifically intended to address issues like the one reported in this bug. There are also reviews by a couple of experienced GNOME devs.
So even if the proposed change is not well tested yet, it seems to me that the risk for adverse side effects is limited.
The merge request was accepted upstream and will be included in mutter 44.2 which should be released approximately May 29.
[ Original description ]
nicolas@
Description: Ubuntu 22.04.1 LTS
Release: 22.04
nicolas@
firefox:
Installé : 1:1snap1-0ubuntu2
Candidat : 1:1snap1-0ubuntu2
Table de version :
*** 1:1snap1-0ubuntu2 500
500 http://
100 /var/lib/
When I boot Ubuntu and start Firefox, the Firefox's window is totally black. See attachment.
I am at your disposal to answer any question you have.
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: firefox 1:1snap1-0ubuntu2
ProcVersionSign
Uname: Linux 5.15.0-46-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Sun Aug 28 12:42:29 2022
InstallationDate: Installed on 2022-08-25 (2 days ago)
InstallationMedia: Ubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809.1)
ProcEnviron:
PATH=(custom, no user)
XDG_RUNTIME_
LANG=fr_FR.UTF-8
SHELL=/bin/bash
Snap.Changes: aucun changement trouvé
SourcePackage: firefox
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in firefox: | |
status: | Unknown → New |
Changed in firefox (Ubuntu): | |
status: | New → Confirmed |
Changed in mutter (Ubuntu): | |
status: | New → Confirmed |
Changed in mutter: | |
status: | Unknown → New |
Changed in firefox: | |
status: | New → Confirmed |
summary: |
- firefox black window + firefox black window on wayland |
Changed in mutter (Ubuntu): | |
assignee: | nobody → Gunnar Hjalmarsson (gunnarhj) |
importance: | Undecided → High |
status: | Confirmed → In Progress |
description: | updated |
no longer affects: | firefox (Ubuntu Lunar) |
Changed in firefox (Ubuntu): | |
status: | Confirmed → Invalid |
Changed in firefox: | |
status: | Confirmed → Fix Released |
Changed in firefox: | |
status: | Fix Released → Unknown |
no longer affects: | firefox (Ubuntu) |
tags: | added: update-excuse-lunar |
Changed in mutter: | |
status: | New → Fix Released |
tags: | added: fixed-in-mutter-44.2 fixed-upstream |
description: | updated |
It appears that I cannot see the attached screenshot. Can you maybe try re-attaching it?
Can you share some details about your hardware (particularly GPU and drivers in use)?
Does it make any difference if you run it like this?
MOZ_ ENABLE_ WAYLAND= 1 snap run firefox