为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

PDF download window disppeared after the recent update

more options

Before the most recent update (version 98.0), my default setting for pdf files is to open in Firefox and a pdf website I use prompted a download window when I clicked 'Download'. It has 'popupDownload=true' in the link which I believe did the trick.

After this update, clicking the same button just opens the pdf file instead of showing the download window, ignoring the command in the link.

Can anyone help me out? Thanks in advance.

Before the most recent update (version 98.0), my default setting for pdf files is to open in Firefox and a pdf website I use prompted a download window when I clicked 'Download'. It has 'popupDownload=true' in the link which I believe did the trick. After this update, clicking the same button just opens the pdf file instead of showing the download window, ignoring the command in the link. Can anyone help me out? Thanks in advance.

所有回复 (10)

more options

Historically, Firefox always showed the download dialog if the site sent a specific "header" with the download:

Content-Disposition: attachment

In the new download workflow in Firefox 98, Firefox no longer shows the dialog automatically, but only if you change your PDF preference from Open in Firefox to Always Ask, which probably would be inconvenient on other sites.

To save the file to your folder of your choice, now you would use the Download button on the PDF Viewer's toolbar instead:

Is that a viable option for your workflow?

more options

Sorry, that image was incorrect. In Firefox 98 when "Open in Firefox" is my default action, when I click the Download button in the PDF Viewer, I get a Save As dialog:

more options

Thank you for your help. This means Firefox no longer cares about the header anymore right? Is there anything I can do about that?

more options

It's a good question, and it's difficult to think of a solution. In theory an add-on could check incoming downloads for this pattern:

  • Content-Type: application/pdf
  • Content-Disposition: attachment

and change the Content-Type to something else so that Firefox doesn't follow the normal rules for a PDF.

I have an add-on that works the opposite way (it fixes messed up headers) but perhaps it might be possible to build in some special handling. (Not useful for now, but it's called Content-Type Fixer.)

more options

Version 98 screwed up everything about file management

I have users that are now downloading the same file 20 times or more because FF doesn't ask what to do anymore it just blatantly saves to the download folder - When software developers muck with a users settings bad things will happen.

The developers need to learn ask for permissions before you screw me by changing my setting - I didn't want to change to Opera but WTF Mozilla

Another example - I used to be able to look at the contents of a zip file in windows explorer. If I only wanted 2 of the many files listed in the archive I could put a tick mark on both files and then drag them to my mozilla window and the files would get copied there - Well that no longer works. I must export all the files out my archive copy the two want to mozilla then delete everything I just Exported -_ NOT GOOD, LOST PRODUCTIVITY

由capatosta于修改

more options

capatosta said

Version 98 screwed up everything about file management I have users that are now download the save file 20 times or more because FF doesn't ask what to do anymore it just blatantly saves to the download folder - When software developers muck with a users settings bad things will happen.

I think this is why the Downloads list is set to open automatically, so users see their download is completed, similar to how other browsers show something along the bottom of the document.

Obviously not everyone likes this method.

more options

jscher2000 said

capatosta said

Version 98 screwed up everything about file management I have users that are now download the save file 20 times or more because FF doesn't ask what to do anymore it just blatantly saves to the download folder - When software developers muck with a users settings bad things will happen.

I think this is why the Downloads list is set to open automatically, so users see their download is completed, similar to how other browsers show something along the bottom of the document.

Obviously not everyone likes this method.

NO its awful Why do devlopers think hey can dictate what works for another individual ?

more options

Hi,

I am a website owner .. and I get messages by users who complain that the page suddenly disappears on PDF download.

So opening the downloaded file in the same tab.. is obviously bad UX !

由lauyflow于修改

more options

Evidently opening the pdf in the same tab will be fixed in version 101: https://bugzilla.mozilla.org/show_bug.cgi?id=1756980

由Terry于修改

more options

lauyflow said

Hi, I am a website owner .. and I get messages by users who complain that the page suddenly disappears on PDF download. So opening the downloaded file in the same tab.. is obviously bad UX !

For now, unfortunately, I think you need to use a fake Content-Type that doesn't open in the PDF viewer (one site I frequent uses "application/force-download").

Terry said

Evidently opening the pdf in the same tab will be fixed in version 101: https://bugzilla.mozilla.org/show_bug.cgi?id=1756980

Yes, this is true: if the PDF download is triggered by <a download="filename.pdf"> or Content-Disposition: atachment, Firefox will direct it to a new tab. Regular PDF links won't change.