-
-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mathjax doesn't works in Firefox 69.0.2 (Windows 8.1) #306
Comments
I reinstalled extension and found a way to get error message:
|
|
Very strange... I repeated my experiments and got another error:
|
|
Hm... It seems that Firefox blocks to load some files... |
Thanks for raising this issue and digging into it! |
Yes, it's right. I'm about extension for Firefox. |
The problem is that something blocks some MathJax files in Firefox. Any ideas to fix this? |
Firefox 68 introduced a strict security policy: https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/68#Security Can you please try this procedure: #302 (comment) ? |
|
By the means, I switched |
I found a workarround:
After these manipulations all works fine. That means that problem is in content security policy. It seems to me you should edit extension manifest to fix this problem. UPD: Sorry, this is NOT a workarround. |
Just found (maybe, this will be usefull): Firefox does not support 'http://127.0.0.1' or 'http://localhost' as script sources: they must be served over HTTPS. |
Now I found what causes this problem. I got log again:
The first problem file is Then I found extension xpi file, copied it on Desktop and opened this file via 7zip as archive. I found that folder Please update Mathjax to the latest 2.7.6 version and pack it correctly. |
We do not include the whole MathJax distribution (33Mb). Also, please note that the package hasn't changed in years and, as far as I know, it was working fine in Firefox 68 (and it's also working fine in Chrome). So something changed in Firefox.
There's already an issue to upgrade to MathJax 2.7.6: #274 I will try to include the whole Mathjax distribution in extension to troubleshoot this issue on Firefox. |
Surprisingly, Chrome extension doesn't have this file too. But log is difference slightly:
So it's possible for MathJax to load web fonts in Chrome. That's why I see first error According documentation this is an expected behavior. Hm... |
I downloaded and installed MathJax fonts from here and restarted Firefox. This solved my problem. Maybe you need to update documentation. Also it seems to me that such problem will not presented in MathJax 3.0. |
@Mogztter, sorry, I didn't see your answer. You don't need to include full MathJax distro in extension. Just add in documentation, that Firefox users need install Mathjax font on their computers. |
No worries. |
Using MathJax 3+ seems to resolve this issue. |
I've just released and published version 2.3.0: https://github.com/asciidoctor/asciidoctor-browser-extension/releases/tag/v2.3.0 Also the rendering should be faster ⚡ |
Just tested in Firefox. All works fine! 👍 Many thanks! Also, rendering is very fast now! |
I'm glad to hear that! |
Let's say we have some test file:
In browser we see the following:
It's okay. Please do nothing and wait for several seconds (approx 25 seconds).
You will see:
Please fix this and update mathjax version.
Unfortunately this error doesn't produce anything in devtools console. The only I found is:
but this error is shown before math processing error.
Best regards,
Andrey.
The text was updated successfully, but these errors were encountered: