In Firefox web browser, go to resource://pdf.js/web/viewer.html
The resource URL scheme will manually call the built-in PDF viewer. For some reason, the 'Open File' button in the viewer is useless in Firefox on Linux; the file selection dialog will not appear. The workaround is to drag and drop PDF file into the built-in viewer.
Open a new window of Firefox web browser.
In the address bar, type resource://pdf.js/web/viewer.html
and hit Enter key. An empty viewer will load.
Open another window of Firefox web browser and visit the page where it contains link to PDF file i.e. google "example adobe .pdf" to find relevant results.
Click on target link once and hold, then move (drag) into the empty viewer and release (drop).
The empty viewer will open the PDF file and the address bar will change from resource://
to https://
or such relevant URL.
The following screenshot combo illustrates the explained steps.
Drag and drop works for links to PDF file, as well as for local documents. Instead of link, drag the file icon from a File Manager into the empty viewer. The PDF file will open similarly.
Tested working in Firefox 50.1.0 (legacy) and 57+ (Firefox Quantum) on Linux.
1Thank you, it doesn't look neat but at least it works. Only other suggestion I found is to use "Open in Browser" extension but it just ignores internal viewer for pdfs and tries to download them anyway (albeit showing pngs etc). – Annarfych – 2016-12-20T18:12:56.660