Firefox cannot load a Web site
Hi,
I'm reporting that firefox, firefox ERS and firefox developer edition (all latest version) are not able to load the Web site https://www.klaytn.com/. While the Web site works well with qupzilla and chromium browser (brave). I already tried all the step in the official documentation (fresh empty profile).
Thank you
由 erotavlas 於
所有回覆 (12)
Please explain the problem in detail. What happens? What is the exact error messages?
Note: When I tried the link with normal Firefox, all I got was a blank page.
However, Windows IE works fine.
Note: Safe Mode is the same issue.
Note: Same issue using Firefox ESR 52.9.0
Should I file a bug?
Hi erotavlas,
I checked on Firefox 66 and I got the same blank page.
It seems more like a webcompat issue. You might want to report to https://webcompat.com/ instead of Bugzilla.
There is a problem with the way a script is served/loaded. Firefox's Browser Console reports:
(1) Firefox retrieves this script:
https://www.klaytn.com/bundle-e669c0.js
The server response headers indicate:
content-encoding: gzip content-type: application/gzip
(2) Firefox displays this warning in the console:
The script from “https://www.klaytn.com/bundle-e669c0.js” was loaded even though its MIME type (“application/gzip”) is not a valid JavaScript MIME type.
(3) When it tries to run the script, Firefox displays this error in the console:
SyntaxError: illegal character
The website should serve .js files with a content-type of application/javascript and that should avoid this problem.
Similar thread: https://support.mozilla.org/questions/1176827
jscher2000 said
There is a problem with the way a script is served/loaded. Firefox's Browser Console reports: (1) Firefox retrieves this script: https://www.klaytn.com/bundle-e669c0.js The server response headers indicate: content-encoding: gzip content-type: application/gzip (2) Firefox displays this warning in the console: The script from “https://www.klaytn.com/bundle-e669c0.js” was loaded even though its MIME type (“application/gzip”) is not a valid JavaScript MIME type. (3) When it tries to run the script, Firefox displays this error in the console: SyntaxError: illegal character The website should serve .js files with a content-type of application/javascript and that should avoid this problem. Similar thread: https://support.mozilla.org/questions/1176827
Thank you for the information. Can you tell me why other browser do not suffer of this problem? Do they auto correct the error? I sent an email to the Web site support.
erotavlas said
Can you tell me why other browser do not suffer of this problem? Do they auto correct the error?
I don't know and have not tested.
I know that Firefox is more strict security wise. For example, certificates that are having a problem can go thru on other browsers, but not Firefox.
It looks that Firefox can't load the JavaScript file that is send as application/gzip and fails to decompress the file and run the application.
Web Console:
The script from “https://www.klaytn.com/bundle-e669c0.js” was loaded even though its MIME type (“application/gzip”) is not a valid JavaScript MIME type.[Learn More]\
HTTP/2.0 200 OK date: Wed, 20 Mar 2019 19:22:43 GMT content-type: application/gzip content-length: 179727 server: nginx content-encoding: gzip vary: Accept-Encoding cache-control: public, max-age=512000 accept-ranges: bytes last-modified: Tue, 19 Mar 2019 01:15:48 GMT etag: W/"2be0f-1699384d061" X-Firefox-Spdy: h2
<noscript> You need to enable JavaScript to run this app. </noscript> <div id="root"></div> <!-- This HTML file is a template. If you open it directly in the browser, you will see an empty page. You can add webfonts, meta tags, or analytics to this file. The build step will place the bundled scripts into the <body> tag. To begin the development, run `npm start` or `yarn start`. To create a production bundle, use `npm run build` or `yarn build`. --> <script type="text/javascript" src="/bundle-e669c0.js"></script></body>
I contacted the klaytn support without success. Do you have any suggestion?
I found a strange behaviour. I tried: GNU/linux ubuntu mate 64 bit firefox 66.0.2, firefox Developer Edition 67 b8, firefox ESR 60.6.1-> problem. Lineage OS 15.1 aka android 8.1 firefox for Android 66.0.2 -> problem. While on firefox focus -> it works well. All the current version (desktop) of firefox are based on quantum project. On Android, firefox focus is based on gecko view (quantum) instead of web view (chromium) https://hacks.mozilla.org/2018/09/focus-with-geckoview/. What could be the differences? Why does it work with firefox focus? Thank