Closed Bug 1487852 Opened 6 years ago Closed 6 years ago

PDF from php link not recognized or sent to mozplugger

Categories

(Toolkit :: Downloads API, defect)

61 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 453455

People

(Reporter: elindarie, Unassigned)

References

()

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0
Build ID: 20180807170231

Steps to reproduce:

I downloaded a PDF file from this link:

http://www.ems-ph.org/journals/show_pdf.php?issn=0013-6018&vol=60&iss=4&rank=1

and a PDF file from this link:

http://library.msri.org/formats/test.pdf

I did this both in Firefox on Linux and Windows.  The Windows one, where I am writing this bug, is Firefox 61.0.2 (64-bit).  The Firefox one is 53.0.3 (64-bit), on Ubuntu 14.04.5 LTS, which we can't leave to update automatically, because it is a public computer, and we don't want a new update to possibly break it or change its settings.


Actual results:

The first PDF pops up a window asking me where I want to save the PDF (not the behavior I want).

The second PDF opens embedded in the browser (the behavior I want).


Expected results:

Both should open embedded in the browser, either on Windows or Linux (using mozplugger).  

I think that when a link ends with something other than PDF (in the first case, php), then Firefox gets confused, and doesn't apply the correct application, even though it shows it's a PDF when the popup dialog asks me where to save it.

Also, on the Linux version of Mozilla, in the Settings -> Applications, there are two entries: Portable Document File and PDF.  The Portable Document File entry says "Use Mozplugger", but the PDF entry doesn't, and I can't find a way to get the Mozplugger option to show in the available choices for PDF.  So I guess this is really two bugs.
(In reply to Linda from comment #0)
> http://www.ems-ph.org/journals/show_pdf.php?issn=0013-
> 6018&vol=60&iss=4&rank=1

Server sends "Content-Disposition: attachment; filename="EM-2005-060-004-01.pdf"

Install an add-on like Bypass Forced Download. https://addons.mozilla.org/firefox/addon/bypass-forced-download/
Status: UNCONFIRMED → RESOLVED
Has STR: --- → yes
Closed: 6 years ago
Component: Untriaged → Downloads API
OS: Unspecified → All
Product: Firefox → Toolkit
Hardware: Unspecified → All
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.