Closed Bug 1767231 Opened 5 months ago Closed 5 months ago

Snap: severe regression: MOZ_ENABLE_WAYLAND=1 does no longer work, fallback to SW WR

Categories

(Core :: Widget: Gtk, defect)

Firefox 99
x86_64
Linux
defect

Tracking

()

VERIFIED FIXED
100 Branch
Tracking Status
firefox-esr91 --- unaffected
firefox99 --- wontfix
firefox100 --- verified

People

(Reporter: jan, Assigned: olivier)

References

(Blocks 1 open bug)

Details

(Keywords: nightly-community, regression)

Debian Testing, Gnome Wayland, Intel

$ MOZ_ENABLE_WAYLAND=1 snap run firefox
Gtk-Message: 10:30:24.009: Failed to load module "canberra-gtk-module"
Gtk-Message: 10:30:24.011: Failed to load module "canberra-gtk-module"
[GFX1-]: glxtest: Could not connect to wayland socket
Gtk-Message: 10:30:26.399: Failed to load module "canberra-gtk-module"
Gtk-Message: 10:30:26.400: Failed to load module "canberra-gtk-module"
[GFX1-]: glxtest: Could not connect to wayland socket

$ DISABLE_WAYLAND=0 snap run firefox
Gtk-Message: 10:32:30.827: Failed to load module "canberra-gtk-module"
Gtk-Message: 10:32:30.829: Failed to load module "canberra-gtk-module"
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.

$ DISABLE_WAYLAND=0 MOZ_ENABLE_WAYLAND=1 snap run firefox
Gtk-Message: 10:33:33.541: Failed to load module "canberra-gtk-module"
Gtk-Message: 10:33:33.542: Failed to load module "canberra-gtk-module"
[GFX1-]: glxtest: Could not connect to wayland socket

Assumingly regressed by https://git.launchpad.net/~mozilla-snaps/+git/firefox-snap/commit/?id=4f3ad5cdc390fedab5db6e2d9a062a2c3bd88474 (bug 1725245 comment 19).

Not having Wayland on Wayland (re-)introduces problems: bug 1766849, bug 1765020, bug 1748921, bug 1744389, bug 1735929, bug 1736245

See Also: → 1766849, 1765020, 1744389
Flags: needinfo?(olivier)

You're right, that change unfortunately made it impossible to force the native use of Wayland. I'm looking into a less invasive approach, that would still default to XWayland (until it is deemed ready for native Wayland), but allow forcing native Wayland for testing purposes.

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

Snap Firefox Nightly and Beta are unaffected.

This commit should do it. If MOZ_ENABLE_WAYLAND is unset, set it to 0. Otherwise, respect the value being passed.

Status: NEW → ASSIGNED

IIUC, this is fixed now Olivier?

Flags: needinfo?(olivier)

Yes, this is now fixed with version 100.0-2 in the stable channel.

Status: ASSIGNED → RESOLVED
Closed: 5 months ago
Flags: needinfo?(olivier)
Resolution: --- → FIXED
Target Milestone: --- → 100 Branch

Verified fixed, thanks.

xwayland: $ snap run firefox
wayland: $ MOZ_ENABLE_WAYLAND=1 snap run firefox
xwayland: $ MOZ_ENABLE_WAYLAND=0 snap run firefox

Status: RESOLVED → VERIFIED
See Also: → 1768487
See Also: → 1765057
You need to log in before you can comment on or make changes to this bug.