2

Firefox components supposedly being accessible by chrome urls (aka. "chrome:// protocol"). How do I open the now built-in pdf.js pdf reader?

I would like to open local pdf files but does not want to change my about:config settings that are currently set to download pdfs automatically without asking.

edit I've tried to enable pdfjs.disabled temporarily in order to be able to use some instrospection over a pdf.js opened random pdf file via dom inspector addon, but I've just recently found this addon (from Foxy Detective's XUL tag) and while I tried to use File menu > inspect chrome document I still couldn't find a way to see the chrome url for the built-in pdf.js.

4

Try resource://pdf.js/web/viewer.html (deduced from bootstrap.js file in PDF Viewer extension but seems to works without the extension too).

There may be problem with opening files, e.g. toolbar button to open file is hidden by default. (Unless you'll figure something out)

|improve this answer|||||
  • extra thanks for sharing how did you found it out! Now I only will have to forge some css with an userscript! – n611x007 Jul 1 '13 at 13:38
  • 1
    +1 This is still a valid answer to this date. For some reason, 'Open File' button doesn't do anything but drag-and-drop PDF file just works fine. Tested in Firefox 50.1.0 on Linux. – user109256 Dec 19 '16 at 18:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.