5 ms·
Can they just give me an actual PDF viewer for the sole purpose of PDF viewing? Is it really the way forward? Bundling everything into a web browser? It feel
by jxy 6y ago
Can they just give me an actual PDF viewer for the sole purpose of PDF viewing? Is it really the way forward? Bundling everything into a web browser? It feels like a giant security hole.
- t0astbread 6y agoI suppose it's easier for a browser vendor to build this into their existing program than to create an entirely new one. Your sentiment is understandable to me, (my) PDF viewing is disconnected enough from web browsing to warrant being split off into a separate program. But PDF is probably an expected feature from a browser for many people.
- signal11 6y agoPDF as a native browser feature started IIRC with Chrome — until then, everyone had to use a plugin. I’ve always thought the reason Chrome built in a PDF reader was that Adobe Reader was really slow to start and brought the browsing experience to a jarring halt. People would even put in “warning: pdf” text when linking to PDFs because of how Adobe Reader slowed people down.
- foxdev 6y agoI thought PDF.js was the first implementation. Firefox added it in 2012.
- muxator 6y agoThis is my recollection, too. Firefox was first, with pdf.js
- signal11 6y agoChrome’s PDF viewer launched in Dec 2010[1] with v8.0.552. The release notes do note that a benefit of the built-in viewer is that it’s sandboxed. That’s fair enough, I guess — the Chrome team had a bee in their bonnet about plugins going all the way back to the Chrome launch comic[2]. Interestingly the Chrome team were using svn back then — that’s how long it’s been :-) [1] https://chromereleases.googleblog.com/2010/12/stable-beta-channel-updates.html https://chromereleases.googleblog.com/2010/12/stable-beta-ch... [2] https://www.google.com/googlebooks/chrome/big_28.html https://www.google.com/googlebooks/chrome/big_28.html
- pheug 6y agoI'd actually consider browser pdf viewers safer than a standalone native app. Firefox uses pdfjs, a pure javascript pdf implementation running inside a battle-tested browser javascript sandbox. No unsafe native pdf code with countless holes.
- pjmlp 6y agoThey have long adopted Chrome's C++ one, given performance complaints.
- dwohnitmok 6y agoDid they? I thought they explicitly rejected it. https://bugzilla.mozilla.org/show_bug.cgi?id=1049218 https://bugzilla.mozilla.org/show_bug.cgi?id=1049218
- rebelwebmaster 6y agoIncorrect, that was abandoned and pdf.js is very-much what's being used.
- deleted 6y ago[deleted]
- aseipp 6y agoNo it does not, Firefox still uses PDF.js. This is extremely easy to verify by just right clicking and hitting "Inspect Element" on any PDF opened in Firefox (and also you can then just load PDF.js into Chrome on a page, load a pdf into that, and verify the same behavior.)
- pjmlp 6y agoI stand corrected then.
- jwatt 6y agoFrom what I understand this wasn't so much about bundling everything into the web browser. It was more about the handling of links to PDF files that are served with `content-disposition:attachment` to get the browser to open the "choose an app to open this file" system dialog. Without Firefox being registered with the system as an app that could open PDF files, users wouldn't be given the option to open it with Firefox (often they'd be prompted to open it using Edge). That was annoying people. Regarding your security concern, Firefox's PDF viewer is PDF.js. Parsing PDF files in a JS sandbox and rendering it to an HTML <canvas> in a sandboxed process should be more secure than rendering it using an unsandboxed app that parses/renders using system APIs.
- Doctor_Fegg 6y agoThat's great news. I get fed up of random PDFs littering my Downloads folder.
- kbenson 6y ago> Regarding your security concern, Firefox's PDF viewer is PDF.js. Parsing PDF files in a JS sandbox and rendering it to an HTML <canvas> in a sandboxed process should be more secure than rendering it using an unsandboxed app that parses/renders using system APIs. Almost definitely. You can go to https://www.exploit-db.com/ https://www.exploit-db.com/ and search for PDF and see many application exploits for PDF viewers, and that includes for linux (and not just commercial applications, Poppler is on there as well, though more than just a few years back). PDFs have shown that they are a fertile ground for exploit, so running them though a sandboxed VM is a very good way to limit that problem to some degree.
- est31 6y ago> Without Firefox being registered with the system as an app that could open PDF files, users wouldn't be given the option to open it with Firefox (often they'd be prompted to open it using Edge). That was annoying people. Huh that's cool that it's fixed now. It annoyed me so much that I installed an extension for it: https://addons.mozilla.org/de/firefox/addon/open-in-browser/ https://addons.mozilla.org/de/firefox/addon/open-in-browser/
- josefx 6y agoglobal warming took a massive hit due to corona. If there ever was a time to support it then that is now and what better tool for it than a JavaScript based PDF viewer. That thing routinely drained my EEE PC empty when it first came out, can we get an environmental seal for software so that we have an official logo to shame JavaScript developers with?
- clairity 6y agoon macos, you can just use the built-in preview app. it's similarly not as advanced as acrobat, but a little better than firefox's pdf.js. i also like opening pdf's in a separate app, as they're usually not part of the main "stream of thought" of the page from whence it came.
- pkulak 6y agoZathura is fantastic.
- boogies 6y agoThis, but at least in my Debian oldstable based distro, it requires Poppler, which the currently highest sibling of your post has pointed out has had vulnerabilities at least in the distant past (Edit: ~7+ years ago). (Edit the second: upstream also supports mupdf https://pwmt.org/projects/zathura/plugins/ https://pwmt.org/projects/zathura/plugins/, but that’s had exploits as recently as 2017 on https://www.exploit-db.com/. https://www.exploit-db.com/.)
- Merg 6y agoGive Sumatra a chance. At least under Windows. It requires a bit of love in terms of changing default color (e.g. single value in config file, from bright yellow to something toned down), but it super fast, lightweight and open wide range of formats (pdf, epub, mobi, djvu).
- boogies 6y agoI (not OP) believe I have. It’s nice, but Zathura can use the same engine (MuPDF, which is responsible for the speed and format support, although Zathura also supports Poppler, which Sumatra has removed support for), and is beautifully vi-like. And what advantages does Sumatra have over pure MuPDF? DRM?
- dependenttypes 6y agoIf I am not mistaken Sumatra is windows-only (zathura is cross platform) and enforces DRM (you can't copy from documents which disallow it). It is objectively an inferior option.
- ocdtrekkie 6y agoHonestly, I really miss Edge's EPUB support. Like really miss it. There's a lot of things I think browsers should not do. WebUSB? WebMIDI? Burn these things with fire. Do not connect the web browser to hardware. Web browsers are supposed to actually be document viewers. HTML is a document format. I am 100% on-board with web browsers also reading PDFs and EPUBs. I know Mozilla is hurting for manpower right now, but I'd drop dead with excitement if EPUB support came to Firefox.
- kelnos 6y ago> Web browsers are supposed to actually be document viewers. That ship sailed long ago. For better or worse, web browsers are application platforms now.
- nickjj 6y agoFortunately Sumatra (on Windows) opens pdf, epub and mobi files: https://www.sumatrapdfreader.org/free-pdf-reader.html https://www.sumatrapdfreader.org/free-pdf-reader.html I switched to it a while back and haven't looked back since. It's open source too.
- mhh__ 6y agoNot really sure about WebUSB but WebMIDI is pretty harmless, surely? The browser probably won't be good enough to replace Ableton (or similar) for a while but it is the primary medium for a lot of digital (interactive) artwork - for projects that use sound it's nice to plug a MIDI device straight into the browser.
- moonchild 6y agoIt can be used for fingerprinting. And most people who care enough to own dedicated MIDI devices also care enough to own dedicated MIDI software.
- acolumb 6y agoAs long as VSTs are native-only (which based on the low-latency nature of audio processing would probably never see a cloud implementation,) web-based DAWs will never replace locally-run ones. Most music studios airgap their systems anyway.