Return an "Intel" User-Agent string on ARM64 macOS
Categories
(Core :: Networking: HTTP, defect, P3)
Tracking
()
People
(Reporter: cpeterson, Assigned: cpeterson)
References
(Blocks 1 open bug)
Details
Attachments
(2 files, 1 obsolete file)
Safari returns an "Intel" User-Agent string (and "MacIntel" navigator.platform
) on ARM64 macOS (presumably for web compat) and on iPadOS (so sites serve desktop page layouts). We should follow Safari's lead for Firefox on ARM64 macOS.
Safari User-Agent string on ARM64 macOS: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_16) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Safari/605.1.15
Safari User-Agent string on iPadOS: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.1 Safari/605.1.15
Assignee | ||
Comment 1•5 years ago
|
||
Dragana, Stephen, and gcp:
- Which Bugzilla component do you think this bug belongs in: "Networking: HTTP", "Widget: Cocoa", or something like "DOM: Core & HTML"?
- Who is an appropriate code reviewer for these User-Agent string changes for macOS Big Sur and ARM64?
Assignee | ||
Comment 2•5 years ago
|
||
Assignee | ||
Comment 3•5 years ago
|
||
Safari returns an "Intel" User-Agent string (and "MacIntel" navigator.platform) on ARM64 macOS (presumably for web compat) and on iPadOS (so sites serve desktop page layouts). We should follow Safari's lead for Firefox on ARM64 macOS.
Note that I do not have an Apple Silicon DTK so I have not personally tested this change on ARM64 macOS. Based on visual inspection of our User-Agent string code, I expect Firefox's current User-Agent string on ARM64 macOS is "Mozilla/5.0 (Macintosh; Mac OS X 10.16; rv:80.0) Gecko/20100101 Firefox/80.0" (and navigator.oscpu is " Mac OS X 10.16"). Note the missing "Intel" and extra space before "Mac OS X".
Example webcompat breakage even in mozilla-central: the Octane JS benchmark assumes Firefox's macOS navigator.platform will never return any values other than "MacIntel" or "MacPPC":
Depends on D84911
Assignee | ||
Comment 4•5 years ago
|
||
Safari returns version "10_16" on macOS Big Sur, not "11_0", presumably for web compat. We should follow Safari's lead for Firefox on Big Sur.
Note that I do not have macOS Big Sur installed so I have not personally tested whether nsCocoaFeatures::macOSVersionMajor() and macOSVersionMinor() return "10.16" or "11.0"!
Depends on D84912
Comment 5•5 years ago
|
||
I think most UA discussions involve the DOM team, maybe hsivonen? Or if not them, they can probably forward to the right person.
Updated•5 years ago
|
Comment 6•5 years ago
|
||
Henri is away. Olli, can you please comment first? Thank you.
Updated•5 years ago
|
Updated•4 years ago
|
Comment 9•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/736689ad9285
https://hg.mozilla.org/mozilla-central/rev/b9e60a11e10a
Comment 10•4 years ago
|
||
(In reply to Gian-Carlo Pascutto [:gcp] from comment #5)
I think most UA discussions involve the DOM team, maybe hsivonen?
Looks good to me. Thanks.
Updated•4 years ago
|
Comment 11•4 years ago
|
||
There's a request to uplift this change to ESR 78 in bug 1679929
Updated•4 years ago
|
Description
•