NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.22k stars 14.21k forks source link

epiphany: no WebGL2 support #193601

Open davidak opened 2 years ago

davidak commented 2 years ago

Describe the bug

I tested https://thirdroom.io/login and got some errors:

Incompatible Browser

This may be happening because of following reason(s):

  • No SharedArrayBuffer found.
  • No webGL2 support found.
  • WebGL2 Hardware acceleration is disabled.
  • WebRTC is not supported.

It is supported in Safari, which also uses WebKit. Can we do something to support it as well?

Steps To Reproduce

Steps to reproduce the behavior:

  1. Open https://thirdroom.io/login in epiphany

Expected behavior

No errors

Additional context

It is not an issue with Epiphany itself.

https://gitlab.gnome.org/GNOME/epiphany/-/issues/1618

There is the build time option ENABLE_WEBGL2, maybe it is needed.

https://github.com/WebKit/WebKit/search?p=1&q=ENABLE_WEBGL2

Currently we are working to finish support for WebAudio and WebRTC.

ENABLE_SHARED_ARRAY_BUFFER

https://webkitgtk.org/

Notify maintainers

@jtojnar

Metadata

jtojnar commented 2 years ago

WebGL2 should be enabled by default: https://github.com/WebKit/WebKit/blob/d257ea20c5996ada3c009a6a2f4a639f92c0e2ca/Source/cmake/OptionsGTK.cmake#L176

Looking at the WebkitGTK build log, this might be the issue instead:

-- Disabling USE_GSTREAMER_TRANSCODER since ENABLE_MEDIA_RECORDER is disabled.
-- Disabling USE_GSTREAMER_WEBRTC since ENABLE_WEB_RTC is disabled.

And looks like that is still experimental:

https://github.com/WebKit/WebKit/blob/d257ea20c5996ada3c009a6a2f4a639f92c0e2ca/Source/cmake/OptionsGTK.cmake#L175