Mozilla has finally added Wayland support to Firefox in the Nightly version, not turned on by default yet, user needs to do that manually by setting an environment variable.
Enable Wayland support in Firefox
Support for Wayland, a replacement for X Window system, X11 in Linux, has finally landed in Nightly version. Till now users need to build Firefox with Wayland on their own manually, which no longer required as Firefox downloaded from mozilla.org now comes with the support out of the box.
Do note, your Firefox still will be is using XWayland unless you set ‘GDK_BACKEND’ environment variable to ‘Wayland’.
Confirming
If your Firefox is running with Wayland enabled, then WebGL should be using EGL instead of GLX, here is how you can check and confirm.
1. Visit about: support
2. Check ‘WebGL 1 Driver WSI Info’ and ‘WebGL 2 Driver WSI Info’, if it says EGL, Wayland Support is enabled, if says GLX, it’s not.
Mozilla says it still long a way to go before they enable Wayland support in Firefox by default, but confirms Firefox getting Wayland support as a major milestone, asks users to test and report bugs.