WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
301923
[GTK][WPE] WebGL support broken when there is no access to /dev/dri since GPU process was enabled by default at
301939@main
https://bugs.webkit.org/show_bug.cgi?id=301923
Summary
[GTK][WPE] WebGL support broken when there is no access to /dev/dri since GPU...
Carlos Alberto Lopez Perez
Reported
2025-11-04 03:43:59 PST
Since
301939@main
enabled GPU process for WebGL by default, the WebGL support is broken when the browser has no access to /dev/dri This can be reproduced easily by launching MiniBrowser with any unprivileged user from your system (one that doesn't have access to /dev/dri) and then trying to load this test page file:///path/to/WebKit/Tools/Scripts/webkitpy/binary_bundling/tests/webdriver/test_webgl_support.html Before
301939@main
the test page worked and showed all the WebGL extensions available, after
301939@main
it shows nothing and on the stderr console it can be see this: Failed to open DRM node /dev/dri/renderD129: Permission denied libEGL warning: failed to open /dev/dri/renderD129: Permission denied libEGL warning: failed to open /dev/dri/renderD128: Permission denied libEGL warning: failed to open /dev/dri/card1: Permission denied libEGL warning: failed to open /dev/dri/card0: Permission denied Failed to open DRM node /dev/dri/renderD129: Permission denied Could not create EGL display for GPU process: no supported platform available. Aborting... Another way to reproduce this is to run MiniBrowser inside a container (docker?) where this devices are not available. This was detected on the nightly buildbots that create a MiniBrowser bundle and then test this bundle across a number of distributions using docker and webdriver and the test failed when tried to run the test_webgl_support.html test inside docker. See: -
https://build.webkit.org/#/builders/1321/builds/390
-
https://build.webkit.org/#/builders/1322/builds/390
Inside docker there is no /dev/dri devices, neither those devices are available on other containers or CI systems.
Attachments
Add attachment
proposed patch, testcase, etc.
Carlos Garcia Campos
Comment 1
2025-11-04 05:23:29 PST
We are supposed to fallback to web process rendering when DMA-BUF is not available, but it seems we are failing to detect that in some cases.
Carlos Garcia Campos
Comment 2
2025-11-04 05:25:03 PST
Does only webgl fail when running with an unprivileged user?
Carlos Garcia Campos
Comment 3
2025-11-04 05:28:04 PST
Wait... we don't do any checks. I'll fix it.
Carlos Garcia Campos
Comment 4
2025-11-04 05:51:10 PST
Pull request:
https://github.com/WebKit/WebKit/pull/53394
EWS
Comment 5
2025-11-05 02:18:03 PST
Committed
302579@main
(92a7e4d46e51): <
https://commits.webkit.org/302579@main
> Reviewed commits have been landed. Closing PR #53394 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug