We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 465638a + 1fc2900 commit acdd3edCopy full SHA for acdd3ed
internal/devtools_browser.py
@@ -874,7 +874,7 @@ def run_lighthouse_test(self, task):
874
command.extend(['--screenEmulation.disabled'])
875
if 'user_agent_string' in self.job:
876
sanitized_user_agent = re.sub(r'[^a-zA-Z0-9_\-.;:/()\[\] ]+', '', self.job['user_agent_string'])
877
- command.append('--chrome-flags="--user-agent=\'{0}\'"'.format(sanitized_user_agent))
+ command.extend(['--emulatedUserAgent', "'" + sanitized_user_agent + "'"])
878
if len(task['block']):
879
for pattern in task['block']:
880
pattern = "'" + pattern.replace("'", "'\\''") + "'"
0 commit comments