Use more good flags to run chrome instance.
The switches are mostly borrowed from chromedriver launching code.
This commit is contained in:
parent
a981594b1d
commit
4af0911b90
@ -28,9 +28,21 @@ let CHROME_PROFILE_PATH = path.resolve(__dirname, '..', '.dev_profile');
|
|||||||
let browserId = 0;
|
let browserId = 0;
|
||||||
|
|
||||||
let DEFAULT_ARGS = [
|
let DEFAULT_ARGS = [
|
||||||
|
'--disable-background-networking',
|
||||||
'--disable-background-timer-throttling',
|
'--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',
|
'--no-first-run',
|
||||||
|
'--password-store=basic',
|
||||||
'--remote-debugging-port=0',
|
'--remote-debugging-port=0',
|
||||||
|
'--safebrowsing-disable-auto-update',
|
||||||
|
'--use-mock-keychain',
|
||||||
];
|
];
|
||||||
|
|
||||||
class Browser {
|
class Browser {
|
||||||
|
Loading…
Reference in New Issue
Block a user