Chrome Flags Reference

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

--site-per-process

What does --site-per-process do?

Enforces a one-site-per-process security policy: * Each renderer process, for its whole lifetime, is dedicated to rendering pages for just one site. * Thus, pages from different sites are never in the same process. * A renderer process's access rights are restricted based on its site. * All cross-site navigations force process swaps. * <iframe>s are rendered out-of-process whenever the src= is cross-site. More details here: - https://www.chromium.org/developers/design-documents/site-isolation - https://www.chromium.org/developers/design-documents/process-models - The class comment in site_instance.h, listing the supported process models. IMPORTANT: this isn't to be confused with --process-per-site (which is about process consolidation, not isolation). You probably want this one.

Usage

CLILaunch Chrome with --site-per-process using CLI

chrome --site-per-process

PuppeteerLaunch Chrome with --site-per-process using Puppeteer

const browser = await puppeteer.launch({
  args: ['--site-per-process']
});

PlaywrightLaunch Chrome with --site-per-process using Playwright

const browser = await chromium.launch({
  args: ['--site-per-process']
});

SeleniumLaunch Chrome with --site-per-process using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--site-per-process')

driver = webdriver.Chrome(options=options)

Build Conditions

LOAD_WEBUI_FROM_DISK