From 4af0911b90773e59c3ff552f6c4cc6e42af715a0 Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Thu, 20 Jul 2017 12:20:10 -0700 Subject: [PATCH] Use more good flags to run chrome instance. The switches are mostly borrowed from chromedriver launching code. --- lib/Browser.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/Browser.js b/lib/Browser.js index 3ff41f5f..69704c0f 100644 --- a/lib/Browser.js +++ b/lib/Browser.js @@ -28,9 +28,21 @@ let CHROME_PROFILE_PATH = path.resolve(__dirname, '..', '.dev_profile'); let browserId = 0; let DEFAULT_ARGS = [ + '--disable-background-networking', '--disable-background-timer-throttling', + '--disable-client-side-phishing-detection', + '--disable-default-apps', + '--disable-hang-monitor', + '--disable-popup-blocking', + '--disable-prompt-on-repost', + '--disable-sync', + '--enable-automation', + '--metrics-recording-only', '--no-first-run', + '--password-store=basic', '--remote-debugging-port=0', + '--safebrowsing-disable-auto-update', + '--use-mock-keychain', ]; class Browser {