Xp/Atom 25.2.1 Fix for wrong embeded useragent for addons

Support board for people running on (retail/OEM) Windows XP (32/64-bit).
Forum rules
This is a self-serve support board for our community. The development team can't provide any support for Windows XP (and compatible versions of Pale Moon for it) any longer.
FenirStardust

Xp/Atom 25.2.1 Fix for wrong embeded useragent for addons

Post by FenirStardust » 2015-02-11, 17:07

Mozilla says "addon not compatible with Firefox/24.9" when using Atom x86 PaleMoon/25.2.1
general.useragent.override.addons.mozilla.org
general.useragent.override.netflix.com

Default for both strings is: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.9) Gecko/20100101 Firefox/24.9 (Pale Moon)

The atom build is obviously a x86 and XP compatible ergo, NT 5.1!. x86 =! WOW64
>/

Mozilla/5.0 (Windows NT 5.1; rv:25.2) Gecko/20150122 Firefox/31.9 PaleMoon/25.2.1

SOLUTION the values of
general.useragent.override.addons.mozilla.org
general.useragent.override.netflix.com

too

Mozilla/5.0 (Windows NT 5.1; rv:25.2) Gecko/20150122 Firefox/31.9 PaleMoon/25.2.1

User avatar
Moonchild
Project founder
Project founder
Posts: 39468
Joined: 2011-08-28, 17:27
Location: Sweden

Re: Xp/Atom 25.2.1 Fix for wrong embeded useragent for addon

Post by Moonchild » 2015-02-11, 17:39

Yup, I'll have to make a separate entry for those overrides on the Atom/XP version, although it makes no difference for the sites who are user agent sniffing requiring these overrides. They will not look at it and just use it for statistical tracking.

Firefox 24.9 is advertised to AMO on purpose, because this is what Pale Moon's compatibility is closest to in terms of extension API. Advertising "31.9" to AMO will give us a bunch of add-ons that are incompatible with Pale Moon.
"Praise from a narcissistic person is always a poison dart. They don't share the stage, so discernment matters." - Dr. Ramani
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

FenirStardust

Re: Xp/Atom 25.2.1 Fix for wrong embeded useragent for addon

Post by FenirStardust » 2015-02-12, 05:17

YEAH but https://addons.mozilla.org/en-US/firefox/ the offical Mozilla/firefox addon page will NOT work properly. this is an eminent issue! I already filed a bug report, hopfully it will show up soon and something can be done about it.
Besides that it says Windows NT 6.1; WOW64; if you know what NT even is ahem, 6.1 is NOT XPsp3!
Nor is it 64bit windows on windows.
24.9 seems to be bogus, https://addons.mozilla.org/en-US/firefox/ should list more addons it doesn;t have,any at all, even though the prior version of the Full xp win32 pale moon was 24.xx.
Doesn't play nice with Mozilla's version checking.

New Tobin Paradigm

Re: Xp/Atom 25.2.1 Fix for wrong embeded useragent for addon

Post by New Tobin Paradigm » 2015-02-12, 12:27

We don't follow Mozilla versioning. We have to override the UA to trick AMO into serving us the proper files.

The NT version on AMO is trivial and doesn't matter.

As I maintain Pale Moon for Windows XP (not the atom optimized version) I can say that the override does exactly what it is intended to do.

User avatar
Moonchild
Project founder
Project founder
Posts: 39468
Joined: 2011-08-28, 17:27
Location: Sweden

Re: Xp/Atom 25.2.1 Fix for wrong embeded useragent for addon

Post by Moonchild » 2015-02-12, 12:38

I suggest you calm down a little. The Firefox add-ons website works just fine in Pale Moon, and plenty of users go there on a daily basis without issues. If it "doesn't work" for you, then please be specific in what doesn't work.

Once again: the UA supplied by Pale Moon in the specific overrides is only for those websites, and those websites really don't care which specific version of Windows visitors are running (they are needed because the sites check on specific Firefox/xx versions in the UA). So before you scream murder, please understand the impact of these strings, or rather, the total lack of impact about having a static windows/os/arch component in them.

And once more: Pale Moon is NOT compatible with Australis Firefox specific Firefox extension code (or 25+ specific extension code, for that matter), which is why it gets a special-case UA to present to AMO. Presenting 24.9 is not bogus, since only the major version matters for AMO, and I chose 24.9 to make clear it's a distinctly different product than any of the 24-ESR UAs that have been used. It's there to indicate front-end/user interface compatibility to AMO, so you're not presented with extensions that will not work on your browser. If AMO says "not available for Firefox 24.9" then that means that the currently presented version of an extension will very likely not run on Pale Moon. AMO is not smart enough (nor do the operators seems to care) to present the latest compatible version of extensions to visitors automatically.
"Praise from a narcissistic person is always a poison dart. They don't share the stage, so discernment matters." - Dr. Ramani
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite