MapboxGL error in Firefox 109.0.1

On this website (https://www.alltrails.com), I’m getting a MapboxGL error:

It appears that your browser does not support MapboxGL, a library that is required to render maps on AllTrails.com. Please upgrade or change browsers before reloading the page. See Browser support | Help | Mapbox for more details. Contact customer support with details about your device and browser if issue persists.

The Flatpak Firefox (same version) works as well as Google Chrome. I tried the fix shown on https://onxmapssupport.zendesk.com/hc/en-us/articles/4414111261581-Web-Browser-does-not-support-MapBoxGL, but it didn’t work:

Fixing the MapBoxGL error in Mozilla Firefox

  1. Go to about:config in your address bar.
  2. Search for webgl.force-enabled and make sure this preference is set to true. If it is currently set to false, click the toggle icon on the far right to change the value to true.
  3. Search for webgl.disabled and make sure this preference is set to false. If it is currently set to true, click the toggle icon on the far right to change the value to false.
  4. Restart Firefox.

Note: This is on KDE and Gnome X11. KDE and Gnome Wayland are OK.

Anyone know if the Firefox binary from Mozilla will work with Clear Linux or does it have dependency issues? The Firefox from Flatpak has anti-alias font rendering issues on some websites.

Update: It does but ffmpeg doesn’t work. How to fix this?

Update: I managed to fix the antialiasing problem in Firefox Flatpak version.

The problem is hardware video acceleration is not working. I have it turned on in Firefox settings. There are a number of messages like:

Blocklisted; failure code FEATURE_FAILURE_OPENGL_NEED_HWCOMP

in about: support.

It fails the test on https://get.webgl.org/

I think this is not necessarily a Firefox problem, as the Mozilla Firefox binary exhibits the same behavior as the native Firefox. It seems to be related to X11. Flatpak Firefox works though.

When I do a

$ eglinfo

GBM platform:
amdgpu_device_initialize: amdgpu_query_info(ACCEL_WORKING) failed (-13)
amdgpu: amdgpu_device_initialize failed.
amdgpu_device_initialize: amdgpu_query_info(ACCEL_WORKING) failed (-13)
amdgpu: amdgpu_device_initialize failed.

eglinfo: eglInitialize failed