為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

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

了解更多

Stopping automatic pdf downloads on Firefox using MacOS

more options

It does not matter how many times I change this setting in preferences to "Open in Firefox" I still get this pop-up every time I click a pdf.

It also does not matter how many times I select "open with preview" and click "Do this automatically for files..." box. Every time I click the next pdf the same thing pops up!?!?!?!

And additionally no matter my selection I make ends up leading to a pdf being downloaded automatically.

This is beyond frustrating. Please help.

It does not matter how many times I change this setting in preferences to "Open in Firefox" I still get this pop-up every time I click a pdf. It also does not matter how many times I select "open with preview" and click "Do this automatically for files..." box. Every time I click the next pdf the same thing pops up!?!?!?! And additionally no matter my selection I make ends up leading to a pdf being downloaded automatically. This is beyond frustrating. Please help.
附加的畫面擷圖

所有回覆 (1)

more options

Are there sites where it works and sites where it doesn't?

When sending a download, sites set multiple HTTP headers. Sites can set two of these to trigger the download dialog, bypassing Firefox's automatic handling of downloads:

(1) Content-Disposition

If a server sends a Content-Disposition header set to attachment, which bypasses viewing in a tab, Firefox will always show the download dialog.

(2) Content-Type

The setting on the Options/Preferences page is keyed to the content type application/pdf, not the .pdf file name extension. If the server sends a different content type, Firefox won't use the PDF instructions.

If you would consider using an add-on to address these issues, I have one here:

https://addons.mozilla.org/firefox/addon/content-type-fixer/

When using a site that has this issue, click the Zzzz button to wake up the extension, then click the button again and select the "Follow my settings (inline)" option:

<center></center>

由 jscher2000 - Support Volunteer 於 修改