4343 '"MAP clients1.google.com 127.0.0.1"'
4444]
4545
46+ ENABLE_CHROME_FEATURES = [
47+ 'NetworkService' ,
48+ 'NetworkServiceInProcess' ,
49+ 'SecMetadata'
50+ ]
51+
4652class ChromeDesktop (DesktopBrowser , DevtoolsBrowser ):
4753 """Desktop Chrome"""
4854 def __init__ (self , path , options , job ):
@@ -58,6 +64,7 @@ def launch(self, job, task):
5864 """Launch the browser"""
5965 self .install_policy ()
6066 args = list (CHROME_COMMAND_LINE_OPTIONS )
67+ features = list (ENABLE_CHROME_FEATURES )
6168 host_rules = list (HOST_RULES )
6269 if 'host_rules' in task :
6370 host_rules .extend (task ['host_rules' ])
@@ -73,16 +80,13 @@ def launch(self, job, task):
7380 if 'profile' in task :
7481 args .append ('--user-data-dir="{0}"' .format (task ['profile' ]))
7582 self .setup_prefs (task ['profile' ])
76- if 'overrideHosts' in task and task ['overrideHosts' ]:
77- args .append ('--enable-features=NetworkService' )
78- else :
79- args .append ('--disable-features=NetworkService' )
8083 if self .options .xvfb :
8184 args .append ('--disable-gpu' )
8285 if self .options .dockerized :
8386 args .append ('--no-sandbox' )
8487 if platform .system () == "Linux" :
8588 args .append ('--disable-setuid-sandbox' )
89+ args .append ('--enable-features=' + ',' .join (features ))
8690 if self .path .find (' ' ) > - 1 :
8791 command_line = '"{0}"' .format (self .path )
8892 else :
0 commit comments