Chrome Flags Reference

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

--change-stack-guard-on-fork

What does --change-stack-guard-on-fork do?

After a zygote forks a new process, change the stack canary. This switch is useful so not all forked processes use the same canary (a secret value), which can be vulnerable to information leaks and brute force attacks. See https://crbug.com/1206626. This requires that all functions on the stack at the time content::RunZygote() is called be compiled without stack canaries. Valid values are "enable" or "disable".

Usage

CLILaunch Chrome with --change-stack-guard-on-fork using CLI

chrome --change-stack-guard-on-fork

PuppeteerLaunch Chrome with --change-stack-guard-on-fork using Puppeteer

const browser = await puppeteer.launch({
  args: ['--change-stack-guard-on-fork']
});

PlaywrightLaunch Chrome with --change-stack-guard-on-fork using Playwright

const browser = await chromium.launch({
  args: ['--change-stack-guard-on-fork']
});

SeleniumLaunch Chrome with --change-stack-guard-on-fork using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--change-stack-guard-on-fork')

driver = webdriver.Chrome(options=options)