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

搜索 | 用户支持

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

详细了解

How can you set FireFox to automatically close the new tab that opens when opening a pdf file

  • 2 个回答
  • 1 人有此问题
  • 1 次查看
  • 最后回复者为 davey0110

more options

Hi, I work in tech support, and one of the user's I work with received a new computer. She has to open hundreds of pdf files a day for her job role. On her old computer, when clicking on a pdf file in Firefox, a new tab would open very briefly, and then close, taking her back to the original website she was on, with the standard "Open With or Save File" window. On the new computer, when clicking on a pdf file, the new (blank) tab stays open until she manually closes it. I feel like there should be an easy way to prevent that new tab from staying open, but I have toggled every setting in Firefox that is available to me regarding opening new tab or windows, and what to do when opening pdf files, but the new tab / window always stays open. I was going to start toggling the settings in about:config, but wanted to crowd source ideas before making some potentially damaging changes.

Any help would be greatly appreciated on this matter. I know that her old computer would have been updated to FF 52 from an older version, and I noticed yet some of the settings were the same as older versions (i.e. the menu bar was still active) where the new computer had a fresh install of FF 52.

Thanks, David

Hi, I work in tech support, and one of the user's I work with received a new computer. She has to open hundreds of pdf files a day for her job role. On her old computer, when clicking on a pdf file in Firefox, a new tab would open very briefly, and then close, taking her back to the original website she was on, with the standard "Open With or Save File" window. On the new computer, when clicking on a pdf file, the new (blank) tab stays open until she manually closes it. I feel like there should be an easy way to prevent that new tab from staying open, but I have toggled every setting in Firefox that is available to me regarding opening new tab or windows, and what to do when opening pdf files, but the new tab / window always stays open. I was going to start toggling the settings in about:config, but wanted to crowd source ideas before making some potentially damaging changes. Any help would be greatly appreciated on this matter. I know that her old computer would have been updated to FF 52 from an older version, and I noticed yet some of the settings were the same as older versions (i.e. the menu bar was still active) where the new computer had a fresh install of FF 52. Thanks, David

所有回复 (2)

more options

Here's my experience:

  • If the new tab is generated by the link having a target="_blank" attribute, Firefox usually will close the tab automatically when it realizes it's a download.
  • If the new tab was generated by the user using Ctrl+click or middle-click on a link, or by an extension that forces non-targeted links to a new tab, then Firefox often does not remove the tab in that case.
more options

Thank you for your quick reply. We have targeted the same pdf link on both the old computer and new computer, and only the new computer leaves the blank "new tab" open. I tried ctrl-clicking, shift-clicking and regular clicking, and they will open either a new tab, or a new window depending on the click, but never closes the tab/window like the old computer used too.