chore: only pass --use-angle for chromium-headless-shell

This commit is contained in:
Dmitry Gozman 2024-11-11 15:29:35 +00:00
parent 5a8b49910a
commit 2b9be220a7

View file

@ -300,7 +300,7 @@ export class Chromium extends BrowserType {
// See https://github.com/microsoft/playwright/issues/7362
chromeArguments.push('--enable-use-zoom-for-dsf=false');
// See https://bugs.chromium.org/p/chromium/issues/detail?id=1407025.
if (options.headless)
if (options.channel === 'chromium-headless-shell')
chromeArguments.push('--use-angle');
}