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.

เรียนรู้เพิ่มเติม

pdf won't open in new tab without downloading first

  • 3 การตอบกลับ
  • 1 คนมีปัญหานี้
  • 4 ครั้งที่ดู
  • ตอบกลับล่าสุดโดย jscher2000 - Support Volunteer

more options

I want to be able to preview pdfs in firefox in a new tab without first downloading the file like it used to. But this version (99) of firefox won't allow me to do that. I tried selecting the "action" for pdfs in the applications section of settings to "open in firefox". What it does is preview the pdfs without downloading indeed but it previews it in the SAME tab which makes browsing more difficult. If I select "always ask", and then select "open with firefox" in the dialogue box, it opens the pdf to a new tab alright but it downloads the file FIRST. Is there a way around this please?

I want to be able to preview pdfs in firefox in a new tab without first downloading the file like it used to. But this version (99) of firefox won't allow me to do that. I tried selecting the "action" for pdfs in the applications section of settings to "open in firefox". What it does is preview the pdfs without downloading indeed but it previews it in the SAME tab which makes browsing more difficult. If I select "always ask", and then select "open with firefox" in the dialogue box, it opens the pdf to a new tab alright but it downloads the file FIRST. Is there a way around this please?

การตอบกลับทั้งหมด (3)

more options

dockayku said

I want to be able to preview pdfs in firefox in a new tab without first downloading the file like it used to. But this version (99) of firefox won't allow me to do that. I tried selecting the "action" for pdfs in the applications section of settings to "open in firefox". What it does is preview the pdfs without downloading indeed but it previews it in the SAME tab which makes browsing more difficult.

When you choose Open in Firefox, PDFs are treated as web content, like web pages. So if there is a link to a PDF and you want it to open in a new tab, you need to do the same kinds of things you would do with a link to a web page:

  • right-click > Open Link in New Tab
  • middle-click the link with the mouse scroll wheel
  • Ctrl+click the link

Some sites might not use a link but instead use a button and script to launch the download. In that case, it is more difficult to control and I'm not sure of the best workaround.

By the way, what I do in a situation like that, if I want to have both the new page/PDF open AND the previous page, is right-click the back button and Ctrl+click the previous page on the drop-down to launch it into a new tab.

more options

Thanks Dropa and jscher2000 for the responses. My issue just resolved itself. Firefox might have fixed it on its own.

Thanks for the tips though jscher2000! Learned some new functions with my mouse.

more options

Yes, I forgot to update this thread. The developers fixed it in Firefox 101.

(The reason for the problem was that many sites assign Content-Disposition: attachment to force a download and bypass built-in browser PDF viewers. Firefox 98 started ignoring that instruction, so users would have a consistent experience regardless of how sites were designed. But then users had this "same tab" problem on sites that didn't anticipate this behavior and weren't directing the downloads to a new tab. Firefox 101 now always opens those "forced download" PDFs in a new tab whether the site specifies that or not.)