mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 21:53:35 +03:00
fix(webkit): disable accelerated compositing on windows (#10264)
This commit is contained in:
parent
724dc2ff2f
commit
b0723c0621
@ -55,6 +55,8 @@ export class WebKit extends BrowserType {
|
|||||||
if (args.find(arg => !arg.startsWith('-')))
|
if (args.find(arg => !arg.startsWith('-')))
|
||||||
throw new Error('Arguments can not specify page to be opened');
|
throw new Error('Arguments can not specify page to be opened');
|
||||||
const webkitArguments = ['--inspector-pipe'];
|
const webkitArguments = ['--inspector-pipe'];
|
||||||
|
if (process.platform === 'win32')
|
||||||
|
webkitArguments.push('--disable-accelerated-compositing');
|
||||||
if (headless)
|
if (headless)
|
||||||
webkitArguments.push('--headless');
|
webkitArguments.push('--headless');
|
||||||
if (isPersistent)
|
if (isPersistent)
|
||||||
|
Loading…
Reference in New Issue
Block a user