You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npx lighthouse https://www.whatismybrowser.com/detect/what-http-headers-is-my-browser-sending/ --form-factor=mobile --emulatedUserAgent="Mozilla/5.0 (iPhone; CPU iPhone OS 17_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.0 Mobile/15E148 Safari/604.1"
formFactor set to mobile
UA is a recent iPhone on Safari
Results in sec-* client hint headers being incorrectly set to:
old chrome version
android device
incorrect model
incorrect platform
What did you expect?
Expected either correct client hints headers, or none being set.
Prior to running Lighthouse, you could use Puppeteer to call page.setUserAgent(ua, uaMetadata), but Lighthouse will still go ahead and override those values.
How were you running Lighthouse?
CLI, node
Lighthouse Version
12.2.1
Chrome Version
129
Node Version
20
OS
Mac, Linux
Relevant log output
No response
The text was updated successfully, but these errors were encountered:
FAQ
URL
https://www.whatismybrowser.com/detect/what-http-headers-is-my-browser-sending/
What happened?
Running lighthouse with:
npx lighthouse https://www.whatismybrowser.com/detect/what-http-headers-is-my-browser-sending/ --form-factor=mobile --emulatedUserAgent="Mozilla/5.0 (iPhone; CPU iPhone OS 17_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.0 Mobile/15E148 Safari/604.1"
formFactor
set to mobileResults in
sec-*
client hint headers being incorrectly set to:What did you expect?
Expected either correct client hints headers, or none being set.
What have you tried?
Reading source code.
User agent metadata is generated, but doesn't take custom user agents (a configurable feature of LH) into account.
Prior to running Lighthouse, you could use Puppeteer to call
page.setUserAgent(ua, uaMetadata)
, but Lighthouse will still go ahead and override those values.How were you running Lighthouse?
CLI, node
Lighthouse Version
12.2.1
Chrome Version
129
Node Version
20
OS
Mac, Linux
Relevant log output
No response
The text was updated successfully, but these errors were encountered: