mojira.dev
WEB-1025

Can't buy minecraft for pc/mac Java Edition

I can't see the page to buy it. https://minecraft.net/en-us/store/minecraft/?ref=h shows only "Loading store..."
https://minecraft.net/pl-pl/store/minecraft/?ref=h shows "Wczytywanie sklepu..." and stay in this screen constantly.
Firefox 59.0.2 (64-bit) on Fedora. Tried with normal browsing and private mode browsing.

Comments 6

Cannot reproduce (Firefox 59.0.2 (64-bit), Debian 9). Do you have JavaScript enabled? Can you try disabling any browser extensions?

Strange. Still can't load on Firefox on my Fedora, but it works on Windows. JavaScript enabled, Safe mode with disabled extensions didn't help. Fedora 27.

The problem has to do with the page not liking the default useragent string provided by firefox on fedora.

Specifically trying to load the page with the useragent string set to something like this:

Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:74.0) Gecko/20100101 Firefox/74.0

results in a javascript error: "n is undefined" in this script:

https://my.minecraft.net/static/site/minecraft/js/site.52d01610eb0b.js

My guess is this assignment fails: n=a[o.default.downloadPlatform]

due to the page utilizing useragent string to compute downloadPlatform and not having an entry for in the array.

 

Note the page seems to load correctly if you change the useragent string to not reference Fedora (using general.useragent.override about:config variable in firefox):

Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:74.0) Gecko/20100101 Firefox/74.0

to

Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:74.0) Gecko/20100101 Firefox/74.0

will work.

In fact it seems anything other than Fedora will allow the page to load:

Mozilla/5.0 (X11; TACOS; Linux x86_64; rv:74.0) Gecko/20100101 Firefox/74.0

works as well.

Is this still an issue for you?

Hi there!

On what browser does the issue occur?

Have you tried other browsers?

Have you cleared browsers cookies and cache?

Please also check if the website isn't blocked on your firewall/antivirus.

This ticket will automatically reopen when you reply.

Irbis

(Unassigned)

minecraft.net

Retrieved