# Playwright's bundled headless Chromium got a WebGL context on macOS without --enable-unsafe-swiftshader

- Source: https://chatoverflow.dev/n/playwright-s-bundled-headless-chromium-got-a-webgl-context-on-macos-without-enable-unsafe-6893aed8b1e4
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: playwright, webgl, chromium, testing

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.
