Open mathifonseca opened 8 years ago
Thanks for the report, @mathifonseca. I'm having trouble reproducing this on OSX 10.10.4, so I'm guessing it might be related to OSX 10.11 (which seems to be what you're using).
Just to make sure -- this happens for every PDF for you, correct? Do you see the same behavior if you disable all other packages except for pdf-view? And have you perhaps been able to reproduce this on an OSX 10.10.X machine?
Hi @izuzak, something that might help you is that it's a PDF with text and inline images and when the error appears, only the images are loaded. I will try it on a 10.10 machine and let you know. Thanks!
Doesn't really help me, actually -- this package doesn't handle PDF rendering. That's all handled by pdf.js, a PDF rendering library which this package uses: https://mozilla.github.io/pdf.js/. Can you share that PDF which you are using to reproduce that exception?
Well, there seems to be a problem with that library then, because that's where Atom says it's failing in the exception info. Here is the pdf: https://dl.dropboxusercontent.com/u/16079214/1.1.14.pdf
On 15 August 2015 at 14:24, Ivan Žužak notifications@github.com wrote:
Doesn't really help me, actually -- this package doesn't handle PDF rendering. That's all handled by pdf.js, a PDF rendering library which this package uses: https://mozilla.github.io/pdf.js/. Can you share that PDF which you are using to reproduce that exception?
— Reply to this email directly or view it on GitHub https://github.com/izuzak/atom-pdf-view/issues/68#issuecomment-131402883 .
Great, thanks - I'm seeing the error as well. I'll try and see if I can find out what that might be about.
Steps:
Atom Version: 1.0.5 System: Mac OS X 10.11 Thrown From: pdf-view package, v0.23.0
Stack Trace
Uncaught EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'".
Commands
Config
Installed Packages