This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

ابحث في الدعم

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Opening downloaded in Mozilla PDFs in Mozilla

more options

I'm browsing Internet in Mozilla. I see a link to PDF file and click on it. Mozilla asks me whether I want to save it or open in some program. But Mozilla has built-in PDF reader - why there's no option "open in Mozilla"? If I want to open the document in the same browser, I have to find it's EXE file in file manager - and if I don't select it as a default reader, after downloading another file I have to find your program again.

I'm browsing Internet in Mozilla. I see a link to PDF file and click on it. Mozilla asks me whether I want to save it or open in some program. But Mozilla has built-in PDF reader - why there's no option "open in Mozilla"? If I want to open the document in the same browser, I have to find it's EXE file in file manager - and if I don't select it as a default reader, after downloading another file I have to find your program again.

All Replies (14)

more options

Hi, please make sure you are set to Preview in Firefox -

If your question is resolved by this or another answer, please take a minute to let us know. Thank you!

more options

It was already set to "preview in Firefox" - some files used to open in Firefox, but some don't. I don't know what it depends on.

more options

Try setting any other reader you have to Never Activate - Add-ons Manager (Ctrl+Shift+A) > Plugins

more options

I don't have any other readers as Mozilla plugins displayed there. Maybe I had Adobe.

more options

Only files send as application/pdf will Firefox open in a tab. If the server sends another content-type then you get a download (open with) dialog.

more options

How does it work? If I click on a link to a PDF file (with .pdf extension), how can there be other content types? Please add an option in download window to open in Mozilla (not only PDFs, but also every other formats you support).

more options

Have you tried FoxIt?

more options

If think it is a Firefox issue : uninstall Firefox. Then Delete the Mozilla Firefox Folders in C:\Program Files and C:\Program Files(x86) Then restart system. Then run Windows Disk Cleanup. (Note: This should be Pinned and run Weekly, If never done below expect 10's of gig's) Then run it again and click the button that says Cleanup System Files. Note: your Firefox Profile is saved. But you should make a back up before you do :

Reinstall with Current Release Firefox 57.0.4 with a Full Version Installer

Please let us know if this solved your issue or if need further assistance.

more options

qwertyuiop1234567890 said

How does it work? If I click on a link to a PDF file (with .pdf extension), how can there be other content types?

You would be surprised what websites will send as the content type for a file. Sometimes they will send application/download or application/octet-stream because they want to force the file to open outside of the browser.

Please add an option in download window to open in Mozilla (not only PDFs, but also every other formats you support).

You can submit suggestions for new/changed features here: https://qsurvey.mozilla.com/s3/FirefoxInput/

Here's the question: how would Firefox know that a file with a .pdf extension is really a PDF if the server doesn't attach the proper content-type header? Or what if the extension is php, jsp, or aspx? Some programs "sniff" the beginning of a file to make an independent judgment of the content type, but Mozilla has resisted doing that.

more options
more options
more options

You appear to be redirected to a locale (pl) that doesn't exist.

more options

WestEnd said

Have you tried FoxIt?

Have you read my question carefully? I'm not looking for an external program for reading PDFs - I want to open them in Mozilla, because it already has a built-in reader. The fact that it also has a fox in the name doesn't mean that it's produced by Mozilla. Foxit reader is a closed-source program, so it's dangerous for privacy. It's also not so useful, because it doesn't support horizontal scrolling by tilting mouse's wheel (my mouse has this function and it works in Mozilla) and when foxit opens a file, it blocks the ability to change it (i.e. when I edit a document, export it to PDF and open in foxit, but then decide to change something, I have to close foxit, because otherwise I can't overwrite the file).

more options

Hi qwertyuiop1234567890, can you give a link to a file that has this problem? There are two primary issues:

(1) Content-Type header

Does the server indicate that the file is application/pdf -- the type that Firefox recognizes under the Portable Document format (PDF) content type?

(2) Content-Disposition header

Does the server override Firefox's normal behavior to open PDFs in a tab by specifying that the file should be downloaded instead?

You can compare "inline" disposition and "attachment" (forced download) disposition using these examples:

Direct link (inline disposition): https://jeffersonscher.com/res/Mixed_Content_Blocking.pdf

Scripted download link (attachment disposition): https://jeffersonscher.com/res/servepdf.php?f=Mixed_Content_Blocking.pdf