Chrome Flags Reference

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

--disable-kill-after-bad-ipc

What does --disable-kill-after-bad-ipc do?

Don't kill a child process when it sends a bad IPC message. Apart from testing, it is a bad idea from a security perspective to enable this switch.

Usage

CLILaunch Chrome with --disable-kill-after-bad-ipc using CLI

chrome --disable-kill-after-bad-ipc

PuppeteerLaunch Chrome with --disable-kill-after-bad-ipc using Puppeteer

const browser = await puppeteer.launch({
  args: ['--disable-kill-after-bad-ipc']
});

PlaywrightLaunch Chrome with --disable-kill-after-bad-ipc using Playwright

const browser = await chromium.launch({
  args: ['--disable-kill-after-bad-ipc']
});

SeleniumLaunch Chrome with --disable-kill-after-bad-ipc using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--disable-kill-after-bad-ipc')

driver = webdriver.Chrome(options=options)