Screenshots with Puppeteer have incorrect dimensions
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']
await puppeteer.launch({
ignoreDefaultArgs: ['--enable-automation'],
});
Edit2: The above workaround isn't enough if you are using Chrome for testing which Puppeteer uses by default now. You can specify a path to a normal Chrome executable as a workaround:
await puppeteer.launch({
ignoreDefaultArgs: ['--enable-automation'],
executablePath: '/path/to/chrome'
});
This is due to the infobar from --enable-automation when launched with puppeteer by default, and cannot be solved without changes in Chromium. The various workarounds mentioned in https://github.com/puppeteer/puppeteer/issues/2070 all devolve into just dropping the --enable-automation flag which we do otherwise want.
Ideal situation:
- trace screenshots are fixed to ignore the infobar area
- we get
--disable-infobarsback which can truly disable this
I opened https://bugs.chromium.org/p/chromium/issues/detail?id=1277272 to see if we can get the ball rolling on option 1.
Update --disable-infobars is returning but only for Chrome for Testing:
https://bugs.chromium.org/p/chromium/issues/detail?id=1476789