diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md index 1c5f455b..c9c1a912 100644 --- a/docs/troubleshooting.md +++ b/docs/troubleshooting.md @@ -172,13 +172,13 @@ yum update nss -y ## Chrome headless disables GPU compositing -Chrome/Chromium requires `--use-gl=egl` to -[enable GPU acceleration in headless mode](https://github.com/chromium/chromium/commit/19671359ae25aa1e30bde90f8ff92453eeaac2ba). +Chrome/Chromium requires `--enable-gpu` to +[enable GPU acceleration in headless mode](https://crbug.com/1416283). ```ts const browser = await puppeteer.launch({ headless: true, - args: ['--use-gl=egl'], + args: ['--enable-gpu'], }); ``` diff --git a/packages/puppeteer-core/src/api/Browser.ts b/packages/puppeteer-core/src/api/Browser.ts index 63f4766f..46623737 100644 --- a/packages/puppeteer-core/src/api/Browser.ts +++ b/packages/puppeteer-core/src/api/Browser.ts @@ -24,7 +24,7 @@ import {EventEmitter} from '../common/EventEmitter.js'; import type {Target} from '../common/Target.js'; // TODO: move to ./api import type {BrowserContext} from './BrowserContext.js'; -import type {Page} from './Page.js'; // TODO: move to ./api +import type {Page} from './Page.js'; /** * BrowserContext options.