diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2018-11-17 11:53:52 +0100 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2018-11-17 11:53:52 +0100 |
commit | da68cf771dbc5ff21168afaa027ab206c6cdb7f1 (patch) | |
tree | fc0750276f27be1f4570fd54925548401637a881 /crocoite | |
parent | bdea8e0d78ec46e7eecdab8b934bd41fc4af7450 (diff) | |
download | crocoite-da68cf771dbc5ff21168afaa027ab206c6cdb7f1.tar.gz crocoite-da68cf771dbc5ff21168afaa027ab206c6cdb7f1.tar.bz2 crocoite-da68cf771dbc5ff21168afaa027ab206c6cdb7f1.zip |
devtools: Update browser flags
Add a few more that seem reasonable.
Diffstat (limited to 'crocoite')
-rw-r--r-- | crocoite/devtools.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/crocoite/devtools.py b/crocoite/devtools.py index 9ce4333..0bf2255 100644 --- a/crocoite/devtools.py +++ b/crocoite/devtools.py @@ -269,6 +269,7 @@ class Process: async def __aenter__ (self): assert self.p is None self.userDataDir = mkdtemp () + # see https://github.com/GoogleChrome/chrome-launcher/blob/master/docs/chrome-flags-for-tools.md args = [self.binary, '--window-size={},{}'.format (*self.windowSize), '--user-data-dir={}'.format (self.userDataDir), # use temporory user dir @@ -278,6 +279,17 @@ class Process: '--disable-extensions', '--disable-infobars', '--disable-notifications', # no libnotify + '--disable-background-networking', # disable background services (updating, safe browsing, …) + '--safebrowsing-disable-auto-update', + '--disable-sync', # no google account syncing + '--metrics-recording-only', # do not submit metrics + '--disable-default-apps', + '--disable-background-timer-throttling', + '--disable-client-side-phishing-detection', + '--disable-popup-blocking', + '--disable-prompt-on-repost', + '--enable-automation', # enable various automation-related things + '--password-store=basic', '--headless', '--disable-gpu', '--hide-scrollbars', # hide scrollbars on screenshots |