搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

How do I stop Firefox from changing my PDF MIME setting from using Acrobat to view in-window to saving the file?

  • 8 回覆
  • 2 有這個問題
  • 2 次檢視
  • 最近回覆由 delong1974

more options

Firefox keeps reverting to "Save File" for Portable Document File. I want PDFs to open in-window, so I have to periodically keep going back into Options>Applications and change the MIME back to using Acrobat. After a few weeks, Firefox changes it back to Save File. Drives me nuts. How do I stop this permanently?

Firefox keeps reverting to "Save File" for Portable Document File. I want PDFs to open in-window, so I have to periodically keep going back into Options>Applications and change the MIME back to using Acrobat. After a few weeks, Firefox changes it back to Save File. Drives me nuts. How do I stop this permanently?

所有回覆 (8)

more options

The file containing the types may be corrupt for some reason. Have a look at the Manage file types and download actions in Firefox support article and remove the file called handlers.json in your profile folder.

Additionally, make sure there is no other software interfering with Firefox settings - the file could be reverted by some application.

more options

Thanks. I've deleted the file and I'll see in the next few months if it works.

more options

A little over two weeks and the MIME setting for PDF and Portable Document Format reverted to "Save File." Suggestions?

more options

Screen shot of the error? It sounds more like a corrupted FF software and it can't see the right save option.

more options

WestEnd said

Screen shot of the error? It sounds more like a corrupted FF software and it can't see the right save option.

There's no "error," just randomly changes the MIME to "Save File" and saves to download location instead of opening in-window.

The top option for PDF is the option to "save file", the Portable Document Format is the option to use Acrobat. I changed the top to display the options. Both should be use Acrobat. Randomly both will revert to "save file."

more options

One possibility is to have a look at the time stamp for the handlers.json file and try to figure out or recall what happened then. The file should only be changed when modifying actions manually or at first instance for an unknown downloadable file type in Firefox (itself!), i.e. it could be 5 months old when nothing changed after setting it for the first time.

Is the time stamp more recent than the day you removed it and accepting a file type for the last time?
Do you still have a backup of the handlers.json file removed earlier, and can you put that back when Firefox is closed in order to verify this is the culprit (and some other application could have restored the file)?

Do you have any Adobe or other distributor’s software/plugin for handling PDF files installed that could restore this behavior? What does about:plugins<enter> say?

more options

Firefox opens PDF files send as application/pdf in a tab and use the builtin PDF Viewer. If the server sends another MIME type or use content-disposition then Firefox will show the download dialog (Open with). Each automatic file action with a valid specific MIME type is stored in handlers.json. You can check the file in a text editor or drag to file in a Firefox tab to use the builtin JSON Viewer.

more options

So I've been observing this behavior and it seems to be something changing the settings, whether it is the way a website handles Acrobat files or what have you. Doesn't seem to be an issue with Firefox per se, though it would be less annoying if something wasn't adding four or more PDF mime types and I have to change it to "use Acrobat" every time something adds a new PDF mime type.