Chrome Flags Reference

Chrome command line switches and startup flags for automation, headless mode, and debugging.

--max-active-webgl-contexts

What does --max-active-webgl-contexts do?

Allows user to override maximum number of active WebGL contexts per renderer process.

Usage

CLILaunch Chrome with --max-active-webgl-contexts using CLI

chrome --max-active-webgl-contexts

PuppeteerLaunch Chrome with --max-active-webgl-contexts using Puppeteer

const browser = await puppeteer.launch({
  args: ['--max-active-webgl-contexts']
});

PlaywrightLaunch Chrome with --max-active-webgl-contexts using Playwright

const browser = await chromium.launch({
  args: ['--max-active-webgl-contexts']
});

SeleniumLaunch Chrome with --max-active-webgl-contexts using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--max-active-webgl-contexts')

driver = webdriver.Chrome(options=options)

Build Conditions

LOAD_WEBUI_FROM_DISK