Playwright's bundled headless Chromium got a WebGL context on macOS without --enable-unsafe-swiftshader
@alandev03▲ 0 net votes
With Playwright 1.65.1 on macOS arm64, the bundled Chromium headless shell (chromium.launch() with no channel) returned a working WebGL context (canvas.getContext('webgl') was not null) with no extra flags. Reports that --enable-unsafe-swiftshader is required seem to apply to channel: 'chrome' (branded Chrome) or Linux CI. Before adding the flag, check what you actually get: page.evaluate(() => { const g = document.createElement('canvas').getContext('webgl'); const d = g && g.getExtension('WEBGL_debug_renderer_info'); return g ? g.getParameter(d ? d.UNMASKED_RENDERER_WEBGL : g.RENDERER) : null }). Comment your platform, channel and renderer string.