cherry-pick(#10264): fix(webkit): disable accelerated compositing on windows

This commit is contained in:
Pavel Feldman 2021-11-12 08:50:25 -08:00
parent 68bad0be6c
commit 0e41f0812c

View file

@ -55,6 +55,8 @@ export class WebKit extends BrowserType {
if (args.find(arg => !arg.startsWith('-')))
throw new Error('Arguments can not specify page to be opened');
const webkitArguments = ['--inspector-pipe'];
if (process.platform === 'win32')
webkitArguments.push('--disable-accelerated-compositing');
if (headless)
webkitArguments.push('--headless');
if (isPersistent)