GoogleChrome / GoogleChrome/lighthouse
Screenshots with Puppeteer have incorrect dimensions
- Dominant language
- JavaScript
- Stars
- 30.8k
- Forks
- 9.8k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 19
Description
https://github.com/GoogleChrome/lighthouse/pull/12973#discussion_r696889448
Full page screenshot looks ok, but the timeline view has incorrect dimensions:

Edit: current workaround for Puppeteer is to use `ignoreDefaultArgs: ['--enable-automation']`
```js
await puppeteer.launch({
ignoreDefaultArgs: ['--enable-automation'],
});
```
Edit2: The above workaround isn't enough if you are using [Chrome for testing](https://developer.chrome.com/blog/chrome-for-testing/) which Puppeteer uses by default now. You can specify a path to a normal Chrome executable as a workaround:
```js
await puppeteer.launch({
ignoreDefaultArgs: ['--enable-automation'],
executablePath: '/path/to/chrome'
});
```
Contributor guide
Assessment
This issue has not been assessed yet.