Version 28.2.x problems with MathJax

Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
Gammatester

Version 28.2.x problems with MathJax

Unread post by Gammatester » 2018-12-07, 10:06

The Palemoon 28.2.x series has problems to display MathJax-Rendering in comments at https://math.stackexchange.com/, see e.g. the post https://math.stackexchange.com/question ... y-frach-n2 . With 28.2.x you see that you see no math formula in the comments.

SInce this is an essential feature I am still using version 28.1.0, which displays the page correctly. I tried all 28.2.x versions, but immediately revert to 28.1.0.

User avatar
satrow
Forum staff
Forum staff
Posts: 1885
Joined: 2011-09-08, 11:27

Re: Version 28.2.x problems with MathJax

Unread post by satrow » 2018-12-07, 10:31

I'm no mathematician but we may need screenshots and more details.
PM_Equations.jpg

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35597
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Version 28.2.x problems with MathJax

Unread post by Moonchild » 2018-12-07, 11:06

No problems with default settings either.
MathJax does seem to have settings of its own, though, so maybe you accidentally changed something there that won't work in Pale Moon?
Attachments
Image1.png
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Gammatester

Re: Version 28.2.x problems with MathJax

Unread post by Gammatester » 2018-12-07, 11:30

Your screen shot is not from the comments sections. How can a post imges? Meanwhile look at the comments in the answer:

Code: Select all

Isn't this summing as opposed to ? – Badam Baplan

Thank You, that is something yet. Any ideas about the second part? – Isak

@BadamBaplan: it is summing the right thing, since . – Jack D'Aurizio

nice, thanks for explaining. this is a nice approach. – Badam Baplan

@Isak: the difficult part is essentially which appears to be manageable by summation by parts. – Jack D'Aurizio
With 28.2.2 you can see no formula, the source code for the last comment from above is

Code: Select all

<span class="comment-copy">@Isak: the difficult part is essentially $\sum_{n\geq 1}\frac{H_n^{(2)}}{(2n+1)^2}$ which appears to be manageable by summation by parts.</span>
                    &ndash;&nbsp;<a href="/users/44121/jack-daurizio"
                       title="283,999 reputation"
                       class="comment-user">Jack D'Aurizio</a>
The MathJax part $\sum_{n\geq 1}\frac{H_n^{(2)}}{(2n+1)^2}$ is not displayed.

I have added two images as attachments the first from 28.1.0 the second from 28.2.2
Attachments
mse_pm10.1.png
mse_pm10.2.2.png
Last edited by Gammatester on 2018-12-07, 11:43, edited 2 times in total.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35597
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Version 28.2.x problems with MathJax

Unread post by Moonchild » 2018-12-07, 11:41

Hmm.. weird. It indeed doesn't display, until I open the devtools, THEN it displays... and remains displayed after closing devtools again.
With there being no issue with devtools open, it becomes really difficult to troubleshoot, though.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

JustOff

Re: Version 28.2.x problems with MathJax

Unread post by JustOff » 2018-12-07, 11:50

Looks like the Firefox 52 compatibility mode is required here:

Code: Select all

general.useragent.override.math.stackexchange.com -> Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.9) Gecko/20100101 Goanna/4.1 Firefox/52.9 PaleMoon/28.2.2

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35597
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Version 28.2.x problems with MathJax

Unread post by Moonchild » 2018-12-07, 11:54

OK, so there's a workaround. Add a useragent override for math.stackexchange.com:

Code: Select all

Mozilla/5.0 (Windows NT 6.1; rv:52.9) Gecko/20100101 Firefox/52.9
Since the mathjax library does UA sniffing and changes code based on what it finds, it'll be difficult to find out what change exactly in Firefox code is responsible for it not displaying with the later compatibility mode version.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35597
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Version 28.2.x problems with MathJax

Unread post by Moonchild » 2018-12-07, 12:09

"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Gammatester

Re: Version 28.2.x problems with MathJax

Unread post by Gammatester » 2018-12-07, 12:21

Thank you.

After changing general.useragent.compatMode.version to 52.9 version 28.2.2 worked as expected.

JustOff

Re: Version 28.2.x problems with MathJax

Unread post by JustOff » 2018-12-07, 13:28

Moonchild wrote:it'll be difficult to find out what change exactly in Firefox code is responsible for it not displaying with the later compatibility mode version.
Perhaps this can help:

Last bad: http://ftp.mozilla.org/pub/firefox/tind ... .win32.zip
First good: http://ftp.mozilla.org/pub/firefox/tind ... .win32.zip
Pushlog: https://hg.mozilla.org/mozilla-central/ ... e1febee19e

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35597
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Version 28.2.x problems with MathJax

Unread post by Moonchild » 2018-12-07, 20:14

Thanks. Looks like it's bug #1338678 since its testcase displays the same devtools oddity-behavior.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

JustOff

Re: Version 28.2.x problems with MathJax

Unread post by JustOff » 2018-12-07, 22:15

Moonchild wrote:Looks like it's bug #1338678 since its testcase displays the same devtools oddity-behavior.
Nice catch, I can confirm this one helps! But you better port it yourself, because lately I'm trying not to alter the code, which I don't understand quite clearly. And perhaps bug #979782 also needs attention, as a follow-up.

Locked