Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

chrome-flags-for-tools.md 6.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. Many tools maintain a list of runtime flags for Chrome to configure the environment. This file
  2. is an attempt to document all chrome flags that are relevant to tools, automation, benchmarking, etc.
  3. All use cases are different, so you'll have to choose which flags are most appropriate.
  4. ## Flags
  5. ### `--disable-extensions`
  6. Disable all chrome extensions.
  7. ### `--disable-component-extensions-with-background-pages`
  8. Disable some built-in extensions that aren't affected by `--disable-extensions`
  9. ### `--disable-background-networking`
  10. Disable various background network services, including extension updating,
  11. safe browsing service, upgrade detector, translate, UMA
  12. ### `--disable-sync`
  13. Disable syncing to a Google account
  14. ### `--metrics-recording-only`
  15. Disable reporting to UMA, but allows for collection
  16. ### `--disable-default-apps`
  17. Disable installation of default apps on first run
  18. ### `--mute-audio`
  19. Mute any audio
  20. ### `--no-default-browser-check`
  21. Disable the default browser check, do not prompt to set it as such
  22. ### `--no-first-run`
  23. Skip first run wizards
  24. ### `--disable-background-timer-throttling`
  25. Disable timers being throttled in background pages/tabs
  26. ### `--disable-client-side-phishing-detection`
  27. Disables client-side phishing detection.
  28. ### `--disable-popup-blocking`
  29. Disable popup blocking. `--block-new-web-contents` is the strict version of this.
  30. ### `--disable-prompt-on-repost`
  31. Reloading a page that came from a POST normally prompts the user.
  32. ### `--enable-automation`
  33. Disable a few things considered not appropriate for automation. ([Original design doc](https://docs.google.com/a/google.com/document/d/1JYj9K61UyxIYavR8_HATYIglR9T_rDwAtLLsD3fbDQg/preview)) [codesearch](https://cs.chromium.org/search/?q=kEnableAutomation&type=cs)
  34. * disables the password saving UI (which covers the usecase of the [removed](https://bugs.chromium.org/p/chromedriver/issues/detail?id=1015) `--disable-save-password-bubble` flag)
  35. * disables infobar animations
  36. * disables dev mode extension bubbles (?), and doesn't show some other info bars
  37. * disables auto-reloading on network errors ([source](https://cs.chromium.org/chromium/src/chrome/renderer/net/net_error_helper_core.cc?l=917&rcl=6eaf0af71262eb876764c6237ee2fe021a3e7a18))
  38. * means the default browser check prompt isn't shown
  39. * avoids showing these 3 infobars: ShowBadFlagsPrompt, GoogleApiKeysInfoBarDelegate, ObsoleteSystemInfoBarDelegate
  40. * adds this infobar:
  41. ![image](https://user-images.githubusercontent.com/39191/30349667-92a7a086-97c8-11e7-86b2-1365e3d407e3.png)
  42. ### `--password-store=basic`
  43. Avoid potential instability of using Gnome Keyring or KDE wallet. crbug.com/571003
  44. ### `--use-mock-keychain`
  45. Use mock keychain on Mac to prevent blocking permissions dialogs
  46. ### `--test-type`
  47. Basically the 2014 version of `--enable-automation`. [codesearch](https://cs.chromium.org/search/?q=kTestType%5Cb&type=cs)
  48. * It avoids creating application stubs in ~/Applications on mac.
  49. * It makes exit codes slightly more correct
  50. * windows navigation jumplists arent updated https://bugs.chromium.org/p/chromium/issues/detail?id=389375
  51. * doesn't start some chrome StartPageService
  52. * disables initializing chromecast service
  53. * "Component extensions with background pages are not enabled during tests because they generate a lot of background behavior that can interfere."
  54. * when quitting the browser, it disables additional checks that may stop that quitting process. (like unsaved form modifications or unhandled profile notifications..)
  55. ### `--disable-browser-side-navigation`
  56. Disable PlzNavigate.
  57. ## Flags to triage
  58. These flags are being used in various tools. They also just need to be documented with their effects and confirmed as still present in Chrome.
  59. ```sh
  60. --process-per-tab
  61. --new-window
  62. --allow-running-insecure-content
  63. --silent-debugger-extension-api
  64. --disable-notifications
  65. --disable-desktop-notifications
  66. --disable-component-update
  67. --disable-background-downloads
  68. --disable-add-to-shelf
  69. --disable-datasaver-prompt
  70. --disable-domain-reliability
  71. --disable-breakpad # Disable crashdump collection (reporting is already disabled in Chromium)
  72. --disable-features=site-per-process # Disables OOPIF. https://www.chromium.org/Home/chromium-security/site-isolation
  73. --disable-hang-monitor
  74. --disable-backgrounding-occluded-windows
  75. --disable-ipc-flooding-protection # https://crrev.com/604305
  76. --disable-renderer-backgrounding # This disables non-foreground tabs from getting a lower process priority
  77. # This doesn't (on its own) affect timers or painting behavior.
  78. # https://github.com/karma-runner/karma-chrome-launcher/issues/123
  79. --remote-debugging-pipe # more secure than using protocol over a websocket
  80. --enable-logging=stderr # Logging behavior slightly more appropriate for a server-type process.
  81. --log-level=0 # 0 means INFO and higher.
  82. --block-new-web-contents # All pop-ups and calls to window.open will fail.
  83. --js-flags=--random-seed=1157259157 --no-script-streaming
  84. --autoplay-policy=user-gesture-required # Don't render video
  85. --disable-dev-shm-usage # https://github.com/GoogleChrome/puppeteer/issues/1834
  86. --no-sandbox # often used with headless, though ideally you don't need to.
  87. # Headless rendering stuff I definitely don't understand
  88. --run-all-compositor-stages-before-draw
  89. --disable-new-content-rendering-timeout
  90. --enable-features=SurfaceSynchronization
  91. --disable-threaded-animation
  92. --disable-threaded-scrolling
  93. --disable-checker-imaging
  94. --disable-image-animation-resync
  95. --use-gl="" # use angle/swiftshader?
  96. ```
  97. ## Removed flags
  98. ### ~`--disable-translate`~
  99. [Removed April 2017](https://codereview.chromium.org/2819813002/) Used to disable built-in Google Translate service.
  100. ### ~`--ignore-autoplay-restrictions`~
  101. [Removed December 2017](https://chromium-review.googlesource.com/#/c/816855/) Can use `--autoplay-policy=no-user-gesture-required` instead.
  102. ## Sources
  103. * [chrome-launcher's flags](https://github.com/GoogleChrome/chrome-launcher/blob/master/src/flags.ts)
  104. * [Chromedriver's flags](https://cs.chromium.org/chromium/src/chrome/test/chromedriver/chrome_launcher.cc?type=cs&q=f:chrome_launcher++kDesktopSwitches&sq=package:chromium)
  105. * [Puppeteer's flags](https://github.com/GoogleChrome/puppeteer/blob/master/lib/Launcher.js)
  106. * [WebpageTest's flags](https://github.com/WPO-Foundation/webpagetest/blob/master/agent/wptdriver/web_browser.cc)
  107. ## All Chrome flags
  108. * [Peter.sh's canonical list of Chrome command-line switches](http://peter.sh/experiments/chromium-command-line-switches/)