Why does Firefox not recognize Windows 11?

Discussion of general topics about Mozilla Firefox
Post Reply
User avatar
tanstaafl
Moderator
Posts: 49647
Joined: July 30th, 2003, 5:06 pm

Why does Firefox not recognize Windows 11?

Post by tanstaafl »

I've noticed that the user agent string for Firefox claims I'm using Windows 10 when I'm actually using Windows 11Pro.

I found https://docs.microsoft.com/en-us/microsoft-edge/web-platform/how-to-detect-win11 which claims Firefox and IE11 are the only browsers that don't provide user-agent client hints to support differentiating between Windows 11 and Windows 10. How come? Its not causing me a problem, I'm just curious.
morat
Posts: 6404
Joined: February 3rd, 2009, 6:29 pm

Re: Why does Firefox not recognize Windows 11?

Post by morat »

Here are the cap bugs.

Cap Windows version in the User-Agent to 10.0
http://bugzilla.mozilla.org/show_bug.cgi?id=1693295
http://phabricator.services.mozilla.com/D105605

Comment in nsHttpHandler.cpp:

Code: Select all

// Cap the reported Windows version to 10.0. This way, Microsoft doesn't
// get to change Web compat-sensitive values without our veto. The
// compat-sensitivity keeps going up as 10.0 stays as the current value
// for longer and longer. If the system-reported version ever changes,
// we'll be able to take our time to evaluate the Web compat impact
// instead of having to scamble to react like happened with macOS
// changing from 10.x to 11.x.
Cap the User-Agent string's reported macOS version at 10.15
http://bugzilla.mozilla.org/show_bug.cgi?id=1679929
http://bugzilla.mozilla.org/show_bug.cgi?id=1679929#c4

The devs are worried about web compat bugs like in comment 4.

Edit:

Implement Client-Hints HTTP header
http://bugzilla.mozilla.org/show_bug.cgi?id=935216
http://bugzilla.mozilla.org/show_bug.cgi?id=935216#c67 (mentions Sec-CH-UA-Platform-Version)
Last edited by morat on June 10th, 2022, 6:39 pm, edited 1 time in total.
User avatar
tanstaafl
Moderator
Posts: 49647
Joined: July 30th, 2003, 5:06 pm

Re: Why does Firefox not recognize Windows 11?

Post by tanstaafl »

Thanks.
Justinh
Posts: 381
Joined: November 13th, 2004, 7:03 pm
Location: Alabama

Re: Why does Firefox not recognize Windows 11?

Post by Justinh »

So the other browsers (effectively only Chrome) don't have a problem with this? Does Google have some special mystery code that can handle it but Mozilla can't figure out how?

Hey, wait. MS even gives you the code to do the job! I guess I don't understand Mozilla's fear.
User avatar
therube
Posts: 21703
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Re: Why does Firefox not recognize Windows 11?

Post by therube »

Other browsers (effectively only Chrome) don't give a damn about their "users", so if a site breaks, they just don't care.
Mozilla also doesn't give a damn about their "users", but they "care" a wee bit more then other browsers.


(As it is, FF has any number of sites that it already spoofs the UA on, from 100+ to something <100.)
Fire 750, bring back 250.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
Post Reply