@@ -47,6 +47,66 @@ export default {
4747 EDGE_CHANNEL : 'msedge' ,
4848 WEBKIT : 'webkit' ,
4949
50+ // discovery browser launch arguments
51+ LAUNCH_ARGS : [
52+ // disable the translate popup and optimization downloads
53+ '--disable-features=Translate,OptimizationGuideModelDownloading' ,
54+ // disable several subsystems which run network requests in the background
55+ '--disable-background-networking' ,
56+ // disable task throttling of timer tasks from background pages
57+ '--disable-background-timer-throttling' ,
58+ // disable backgrounding renderer processes
59+ '--disable-renderer-backgrounding' ,
60+ // disable backgrounding renderers for occluded windows (reduce nondeterminism)
61+ '--disable-backgrounding-occluded-windows' ,
62+ // disable crash reporting
63+ '--disable-breakpad' ,
64+ // disable client side phishing detection
65+ '--disable-client-side-phishing-detection' ,
66+ // disable default component extensions with background pages for performance
67+ '--disable-component-extensions-with-background-pages' ,
68+ // disable installation of default apps on first run
69+ '--disable-default-apps' ,
70+ // work-around for environments where a small /dev/shm partition causes crashes
71+ '--disable-dev-shm-usage' ,
72+ // disable extensions
73+ '--disable-extensions' ,
74+ // disable hang monitor dialogs in renderer processes
75+ '--disable-hang-monitor' ,
76+ // disable inter-process communication flooding protection for javascript
77+ '--disable-ipc-flooding-protection' ,
78+ // disable web notifications and the push API
79+ '--disable-notifications' ,
80+ // disable the prompt when a POST request causes page navigation
81+ '--disable-prompt-on-repost' ,
82+ // disable syncing browser data with google accounts
83+ '--disable-sync' ,
84+ // disable site-isolation to make network requests easier to intercept
85+ '--disable-site-isolation-trials' ,
86+ // disable the first run tasks, whether or not it's actually the first run
87+ '--no-first-run' ,
88+ // disable the sandbox for all process types that are normally sandboxed
89+ '--no-sandbox' ,
90+ // specify a consistent encryption backend across platforms
91+ '--password-store=basic' ,
92+ // use a mock keychain on Mac to prevent blocking permissions dialogs
93+ '--use-mock-keychain' ,
94+ // enable remote debugging on the first available port
95+ '--remote-debugging-port=0' ,
96+ // sets navigator.webdriver to false
97+ '--disable-blink-features=AutomationControlled' ,
98+ // disable UA-CH feature
99+ `--disable-features=UserAgentClientHint` ,
100+ ] ,
101+
102+ // discovery request headers
103+ REQUEST_HEADERS : {
104+ // `HeadlessChrome` is added to sec-ch-ua, `--disable-features=UserAgentClientHint` doesn't seem to work
105+ 'sec-ch-ua' :'"Chromium";v="129", "Not=A?Brand";v="8"' ,
106+ 'sec-ch-ua-mobile' : '"?0"' ,
107+ 'sec-ch-ua-platform' : '"Windows"'
108+ } ,
109+
50110 // user agents
51111 CHROME_USER_AGENT : 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.6312.107 Safari/537.3' ,
52112 FIREFOX_USER_AGENT : 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:112.0) Gecko/20100101 Firefox/112.0' ,
0 commit comments