fix(chromium): disable use-zoom-for-dsf (#7407)

This commit is contained in:
Joel Einbinder 2021-07-12 22:56:00 -05:00 committed by GitHub
parent 1d04114df0
commit 9264a8d5b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -151,6 +151,11 @@ export class Chromium extends BrowserType {
throw new Error('Arguments can not specify page to be opened');
const chromeArguments = [...DEFAULT_ARGS];
chromeArguments.push(`--user-data-dir=${userDataDir}`);
// See https://github.com/microsoft/playwright/issues/7362
if (os.platform() === 'darwin')
chromeArguments.push('--enable-use-zoom-for-dsf=false');
if (options.useWebSocket)
chromeArguments.push('--remote-debugging-port=0');
else