GoogleChrome / GoogleChrome/lighthouse
User agent does not include "Chrome Lighthouse" anymore?
- Dominant language
- JavaScript
- Stars
- 30.8k
- Forks
- 9.8k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 19
Description
### What happened?
The user agent of the pagespeed api doesn't seem to include "Chrome Lighthouse" anymore, so that libraries like isBot do not detect when Google Lighthouse tests are running, and thereby we can not control loading 3rd party content blocking the viewport like cookie policy overlays, that is then considered LCP and might be blocking potential CLS elements.
User agent is now:
"Mozilla/5.0 (Linux; Android 11; moto g power (2022)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Mobile Safari/537.36"
### What did you expect?
User agent before v10:
"Mozilla/5.0 (Linux; Android 7.0; Moto G (4)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4695.0 Mobile Safari/537.36 Chrome-Lighthouse"
Contributor guide
Assessment
This issue has not been assessed yet.