3 ms·
People seem skeptical of this because of Electron fatigue, but keep in mind that if your browser's built-in PDF rendering is native code, there's potentially a
by tptacek 9y ago
People seem skeptical of this because of Electron fatigue, but keep in mind that if your browser's built-in PDF rendering is native code, there's potentially a security win to replacing that attack surface with Pdf.js. Already, we go to some trouble to train people to open attachments on Google Drive's web viewers rather than by double-clicking on them.
- koolba 9y agoDoesn't Firefox itself use pdf.js for PDF rendering? The FAQ says it's been baked into Firefox since v19: https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Ques...
- tptacek 9y agoYes, Pdf.js is a Mozilla project, right?
- jlarocco 9y agoThat line of reasoning seems specious. Everything that runs on a computer is run as, or by, native code at some point, and that doesn't make it automatically insecure. At the same time, since Electron uses a browser, any potentially unsafe native code in the browser is loaded and waiting to be exploited anyway when using this viewer. Finally, I think most people (myself included) trust their browser developer more than they trust a random person's Javascript thrown on GitHub. That said, I don't see why anybody would use this over mupdf or evince.
- pvg 9y agoManaged runtimes being harder to exploit than native code written in an unsafe language is not a controversial idea that you're going to kill by judicious application of the axiomatic method.
- codedokode 9y agoBut if you use PDF viewer in Chrome, it is properly sandboxed from the rest of OS. Is this app sandboxed as well? I don't think so.