You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/chrome-flags-for-tools.md
+10-9Lines changed: 10 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ Here's a **[Nov 2022 comparison of what flags](https://docs.google.com/spreadshe
36
36
37
37
*`--aggressive-cache-discard`
38
38
*`--allow-running-insecure-content`
39
-
*`--disable-back-forward-cache`: Disables the BackForwardCache feature.
39
+
*`--disable-back-forward-cache`: Disables the BackForwardCache feature to avoids surprises like main request not being intercepted during page.goBack().
*`--disable-features=AutoExpandDetailsElement`: Removed in [Sept 2022](https://bugs.chromium.org/p/chromium/issues/detail?id=1185950#c62).
42
42
*`--disable-features=AvoidUnnecessaryBeforeUnloadCheckSync`: If enabled, this feature results in the browser process only asking the renderer process to run beforeunload handlers if it knows such handlers are registered. With `kAvoidUnnecessaryBeforeUnloadCheckSync`, content does not report a beforeunload handler is present. A ramification of this is navigations that would normally check beforeunload handlers before continuing will not, and navigation will synchronously continue.
@@ -45,6 +45,7 @@ Here's a **[Nov 2022 comparison of what flags](https://docs.google.com/spreadshe
*`--disable-field-trial-config`: See https://source.chromium.org/chromium/chromium/src/+/main:testing/variations/README.md
48
49
*`--no-process-per-site`: Disables renderer process reuse (across tabs of the same site).
49
50
*`--enable-precise-memory-info`: Make the values returned to window.performance.memory more granular and more up to date in shared worker. Without this flag, the memory information is still available, but it is bucketized and updated less frequently. This flag also applys to workers.
50
51
*`--js-flags=--random-seed=1157259157`: Initialize V8's RNG with a fixed seed.
@@ -54,7 +55,7 @@ Here's a **[Nov 2022 comparison of what flags](https://docs.google.com/spreadshe
54
55
55
56
## Interactivity suppression
56
57
57
-
*`--autoplay-policy=...`: Value of `user-gesture-required` to not autoplay video. Value of `no-user-gesture-required` to always autoplay video.
58
+
*`--autoplay-policy=…`: Value of `user-gesture-required` to not autoplay video. Value of `no-user-gesture-required` to always autoplay video.
58
59
*`--deny-permission-prompts`: Suppress all permission prompts by automatically denying them.
59
60
*`--disable-external-intent-requests`: Disallow opening links in external applications
60
61
*`--disable-features=GlobalMediaControls`: Hide toolbar button that opens dialog for controlling media sessions.
@@ -74,7 +75,7 @@ Here's a **[Nov 2022 comparison of what flags](https://docs.google.com/spreadshe
74
75
- disables auto-reloading on network errors ([source](https://source.chromium.org/chromium/chromium/src/+/main:chrome/browser/chrome_content_browser_client.cc;l=1328-1331;drc=1e6c1a39cbbc1dcad6e7828661d74d76463465ed))
75
76
- enables the CDP method [`Browser.getBrowserCommandLine`](https://chromedevtools.github.io/devtools-protocol/tot/Browser/#method-getBrowserCommandLine).
76
77
- avoids showing these 4 infobars: ShowBadFlagsPrompt, GoogleApiKeysInfoBarDelegate, ObsoleteSystemInfoBarDelegate, LacrosButterBar
77
-
- adds this infobar: ... which is known to [adversely affect screenshots](https://bugs.chromium.org/p/chromium/issues/detail?id=1277272).
78
+
- adds this infobar: … which is known to [adversely affect screenshots](https://bugs.chromium.org/p/chromium/issues/detail?id=1277272).
78
79
*`--test-type`: Basically the 2014 version of `--enable-automation`. [codesearch](https://cs.chromium.org/search/?q=kTestType%5Cb&type=cs)
79
80
- It avoids creating application stubs in ~/Applications on mac.
80
81
- It makes exit codes slightly more correct
@@ -84,28 +85,28 @@ Here's a **[Nov 2022 comparison of what flags](https://docs.google.com/spreadshe
84
85
- "Component extensions with background pages are not enabled during tests because they generate a lot of background behavior that can interfere."
85
86
- when quitting the browser, it disables additional checks that may stop that quitting process. (like unsaved form modifications or unhandled profile notifications..)
86
87
*`--remote-debugging-pipe`: more secure than using protocol over a websocket
87
-
*`--remote-debugging-port=...`: With a value of 0, Chrome will automatically select a useable port _and_ will set `navigator.webdriver` to `true`.
88
+
*`--remote-debugging-port=…`: With a value of 0, Chrome will automatically select a useable port _and_ will set `navigator.webdriver` to `true`.
88
89
*`--silent-debugger-extension-api`: Does not show an infobar when a Chrome extension attaches to a page using `chrome.debugger` page. Required to attach to extension background pages.
89
90
90
91
## General
91
92
92
93
*`--enable-logging=stderr`: Logging behavior slightly more appropriate for a server-type process.
93
94
*`--log-level=0`: 0 means INFO and higher. `2` is the most verbose. Protip: Use `--enable-logging=stderr --v=2` and you may spot additional components active that you may want to disable.
94
-
*`--user-data-dir=...`: Directory where the browser stores the user profile.
95
+
*`--user-data-dir=…`: Directory where the browser stores the user profile.
95
96
96
97
## Chromium Annoyances
97
98
98
99
*`--disable-features=MediaRouter`: Avoid the startup dialog for _Do you want the application “Chromium.app” to accept incoming network connections?_. Also disables the [Chrome Media Router](https://chromium.googlesource.com/chromium/src/+/HEAD/docs/media/media_router.md) which creates background networking activity to discover cast targets. A superset of disabling `DialMediaRouteProvider`.
99
100
*`--password-store=basic`: Avoid potential instability of using Gnome Keyring or KDE wallet. [chromium/linux/password_storage.md](https://chromium.googlesource.com/chromium/src/+/main/docs/linux/password_storage.md)https://crbug.com/571003
100
-
*`--use-mock-keychain`: Use mock keychain on Mac to prevent the blocking permissions dialog abou: _Chrome wants to use your confidential information stored in your keychain_
101
+
*`--use-mock-keychain`: Use mock keychain on Mac to prevent the blocking permissions dialog asking: _Do you want the application “Chromium.app” to accept incoming network connections?_
101
102
102
103
## Background networking
103
104
104
105
*`--disable-background-networking`: Disable various background network services, including extension updating,safe browsing service, upgrade detector, translate, UMA
105
106
*`--disable-breakpad`: Disable crashdump collection (reporting is already disabled in Chromium)
106
-
*`--disable-component-update`: Don't update the browser 'components' listed at chrome://components/
107
+
*`--disable-component-update`: Don't update the browser 'components' listed at chrome://components/ after startup as it creates lots of network activity.
107
108
*`--disable-domain-reliability`: Disables Domain Reliability Monitoring, which tracks whether the browser has difficulty contacting Google-owned sites and uploads reports to Google.
108
-
*`--disable-features=AutofillServerCommunication`: Disables autofill server communication. This feature isn't disabled via other 'parent' flags.
109
+
*`--disable-features=AutofillServerCommunication`: Disables (mostly for hermetic testing) autofill server communication. The URL of the autofill server can further be controlled via the autofill-server-url param. The given URL should specify the complete autofill server API url up to the parent "directory" of the "query" and "upload" resources. i.e., https://other.autofill.server:port/tbproxy/af/
*`--disable-sync`: Disable syncing to a Google account
111
112
*`--enable-crash-reporter-for-testing`: Used for turning on Breakpad crash reporting in a debug environment where crash reporting is typically compiled but disabled.
@@ -195,7 +196,7 @@ If you wanted to launch a fresh Chrome profile **_with_** some Preferences set,
0 commit comments