News for hackers. Stuff that matters.
Re:I ported LaTeX to Javascript by tolmasky on Saturday January 19, 2013 @01:59PM (#5084327)
Just tried it, crashes in the exact same way:

1. Hitting "Compile" does whatever it should do successfully. 2. Then hitting "Open PDF" opens a new tab which stalls out and crashes

I would almost say its actually a PDF thing that is crashing Safari vs a JS thing.

At least, that's what has happened consistently on my machine with latest Safari and WebKit nightly.

Edit: However, taking the generated PDF from Chrome and dropping it into Safari loads it fine, so maybe it is a JS thing.

Edit 2: Upon further inspection it appears the new tab is being opened with just a data URL representing the entire PDF. It wouldn't surprise me if that's the problem (Safari not being able to handle huge data as a URL). I recall running into a similar crash in MobileSafari because of that a while ago.

Re:I ported LaTeX to Javascript by tolmasky on Saturday January 19, 2013 @02:06PM (#5084361)
Yup, that is for sure it. I took the Chrome generated PDF, turned it into a data URL, then copy-pasted the data URL into Safari's URL bar. Crash.

Drag and dropping the file itself into Safari, works fine.

Re:I ported LaTeX to Javascript by azakai on Saturday January 19, 2013 @09:35PM (#5085742)
Please file a bug, so they can fix it.
Re:I ported LaTeX to Javascript by bstar77 on Saturday January 19, 2013 @02:12PM (#5084384)
Nice debugging, not a fan of making blanket assumptions when something isn't working as expected.