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

This commit is contained in:
Pavel Feldman 2021-11-12 08:50:25 -08:00 committed by GitHub
parent 724dc2ff2f
commit b0723c0621
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)