Wrong User-Agent header in Responsive Design Mode when mobile device is set
Categories
(DevTools :: Responsive Design Mode, defect)
Tracking
(Not tracked)
People
(Reporter: kasper.moskwiak, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:74.0) Gecko/20100101 Firefox/74.0
Steps to reproduce:
- Open website (e.g. www.mozilla.org ) and turn on DevTools
- Turn on Responsive Design Mode and choose mobile device (e.g. iPhone X)
- Reload Page
Actual results:
Request header "User Agent" should reflect mobile device. Should be to:
"Mozilla/5.0 (iPhone; CPU iPhone OS 12_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/12.0 Mobile/15A372 Safari/604.1"
Expected results:
Request header "User Agent" is equal: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:74.0) Gecko/20100101 Firefox/74.0
Reporter | ||
Comment 1•4 years ago
|
||
I have put actual / expected results in wrong order. Here are fixed:
Actual results:
Request header "User Agent" is equal: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:74.0) Gecko/20100101 Firefox/74.0
Expected results:
Request header "User Agent" should reflect mobile device. Should be to:
"Mozilla/5.0 (iPhone; CPU iPhone OS 12_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/12.0 Mobile/15A372 Safari/604.1"
Comment 2•4 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Comment 3•4 years ago
|
||
Looks to be a duplicate of Bug 1595017. Feel free to re-open if that's not the case.
Description
•