[BUG] webgl is null in Firefox on Ubuntu 22.04
See original GitHub issueContext:
- Playwright Version: 1.22.0
- Operating System: Ubuntu 22.04 LTS
- Node.js version: v18.1.0
- Browser: Firefox
Code Snippet
Help us help you! Put down a short code snippet that illustrates your bug and that we can run and debug locally. For example:
const {firefox} = require('playwright');
(async () => {
const browser = await firefox.launch();
const context = await browser.newContext();
const page = await context.newPage();
const webgl = await page.evaluate(() => {
const canvas = document.createElement("canvas");
return canvas.getContext("webgl");
});
console.log(webgl);
await browser.close();
})();
Describe the bug
Variable webgl
is null
(WebGLRenderingContext
expected).
On Ubuntu 20.04.4 LTS (with the same version of Node.js and Playwright), the canvas.getContext("webgl")
method returns the correct value. I think there is a regression when switching to Ubuntu 22.04.
Issue Analytics
- State:
- Created a year ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
firefox no WebGL - Ask Ubuntu
The problem here is WebGL which is not working. When I start Firefox, I have this error : $ firefox [GFX1-]: No GPUs...
Read more >Firefox 91 Linux - WebGL stopped working
My solution was to set the environment variable MOZ_ENABLE_WAYLAND=1 then Firefox uses Wayland and not xwayland. This has fixed the webgl issue, ...
Read more >WebGL does not work in snap firefox - Launchpad Bugs
Since upgrading to Ubuntu 22.04 LTS I am no longer able to use WebGL on firefox. If I go to https://get.webgl.org/ it says...
Read more >WebGL not Working on Ubuntu 20.04! Can anyone help pls?
I run into a strange Error. Whenever I try to run a 3D WebGL Game on Sites like itch.io my browser rather crashes...
Read more >Google Chrome not working after upgrading to 22.04
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null). Firefox works perfectly, but all my bookmarks, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Playwright on Ubuntu 22.04 is not supported yet
https://github.com/microsoft/playwright/issues/13738
Folding into https://github.com/microsoft/playwright/issues/13738 since this should be fixed by a dedicated build.