Summary: | www/firefox 123.0 incorrectly speciffies Linux as OS instead of FreeBSD in the User Agent string | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | gebhart |
Component: | Individual Port(s) | Assignee: | Christoph Moench-Tegeder <cmt> |
Status: | Closed Works As Intended | ||
Severity: | Affects Many People | CC: | Alexander88207, agh, cmt, dsh, gebhart, nc, ps.ports, tomek, vishwin, vvd |
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(gecko) |
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any | ||
See Also: | https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=226919 |
Description
gebhart
2024-02-28 02:38:18 UTC
I just realised that www/iridium has the same bug, maybe it's related. It reports: "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.6099.224 Safari/537.36" Same machine with 13.2-RELEASE on amd64 . It was "Mozilla/5.0 (X11; FreeBSD amd64; rv:xxx.0) Gecko/20100101 Firefox/xxx.0" before and now it's "Mozilla/5.0 (X11; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0". But I had to set "general.useragent.override" to "Mozilla/5.0 (X11; Linux x86_64; FreeBSD amd64; rv:199.0) Gecko/20100101 Firefox/199.0" to stop stupid messages like "Your OS isn't supported" on some sites. This is intentional. In ports 5f83a8cdba544023d975dd1da704ac833836a062, Mozilla Add-Ons search was masked as Linux as many new add-ons and updates would never populate due to platform check warts. In ports ab146876a894c84256e94c43b6955b2a2ad49313, this was extended to the entire User-Agent. I might be wrong, but I think, it would be better to solve the original problem instead of introducing some new. eg. the Mozilla addon stuff etc. It really breaks all kind of statistics, the visibility of FreeBSD and in some cases even webserver access. Even if some stupid websites sort FreeBSD in as a Linux distro, it's not and hopefully will never be. Unfortunately the original problem can only be solved by extension authors and Mozilla themselves, which is a pipe dream at best considering we are Tier-3 to them. https://firefox-source-docs.mozilla.org/contributing/build/supported.html This is unacceptable solution and makes FreeBSD completely disappear from the web! My browser is reported as "Mozilla/5.0 (X11; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0". Please revert. That was intentional in upstream: https://bugzilla.mozilla.org/show_bug.cgi?id=1861847 OMG :-( As an unpopular opinion, writing Linux as the user agent actually makes sense. Many web developers are clueless about non-Top 4 (Windows, Mac, Linux, and Chrome OS). In fact, I know of many software engineers who don't know what FreeBSD is. Once upon a time, developers only cared for the Top 2 (Windows and Mac) until Linux and Chromebooks became more popular. While I no longer daily drive FreeBSD, this isn't very new. macOS on Apple Silicon says x86_64 in the user agent, and Fedora Asahi Remix (which I am using to type this) does this too. Tor Browser goes further and puts in a Windows user agent for everyone. Chase Bank in the US has long blocked FreeBSD from online banking, claiming to "require" Windows or Mac, but allows Linux and Chrome OS due to the sheer size of both. This move means FreeBSD users can use Chase online banking without plugins since to Chase you're "Linux". I also had a landlord which used a site builder which did the same, but fortunately the portal to pay rent and put in service requests were unblocked. |