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.

Search Support

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.

Learn More

auto close tabs that open when clicking download links

  • 8 svar
  • 1 har dette problemet
  • 3 views
  • Siste svar av cor-el

more options

When clicking on a download link, Firefox sometimes opens a new tab to download the file and never closes it. I had found an add-on that closed that tab soon after opening it in the Add-on section. Last night I had a HD crash and had to do a reformat and re-installation of Windows and all my software. I had not made a backup of Firefox with the installed add-ons recently, so when I restored from the backup that add-on wasn't there.

Does anyone know the name of the add-on that I'm referring to so I can reinstall it and not have to close the tabs manually?

When clicking on a download link, Firefox sometimes opens a new tab to download the file and never closes it. I had found an add-on that closed that tab soon after opening it in the Add-on section. Last night I had a HD crash and had to do a reformat and re-installation of Windows and all my software. I had not made a backup of Firefox with the installed add-ons recently, so when I restored from the backup that add-on wasn't there. Does anyone know the name of the add-on that I'm referring to so I can reinstall it and not have to close the tabs manually?

All Replies (8)

more options

A possible workaround to prevent opening a new tab is to use "Save Link As" in the right-click context menu instead of left-clicking the link.

more options

Click Start, select “Control panel” option

   Open “Uninstall a program”
   Uninstall all suspicious and unknown applications
   Reset Firefox settings
   Download AdwCleaner and scan your computer
   and remove any malware found
more options

You must Intercept the download links.

   You must send the link to a new tab when 

it is clicked, and not just modify it with target="_blank". The tab must be opened with javascript, so that javascript will be allowed to close it when the time comes.

   Your script must also run-on / handle the 

"popup" tab, so that it can detect when to close the popup.

For this discussion, refer to

this test page at jsFiddle. 

It is structured like this:

where the a.dwnPageLink

links each open a "Download page"
-- which automatically starts a 

file download after a short delay.

more options

Dinushi Dhananjani said

You must Intercept the download links. You must send the link to a new tab when it is clicked, and not just modify it with target="_blank". The tab must be opened with javascript, so that javascript will be allowed to close it when the time comes. Your script must also run-on / handle the "popup" tab, so that it can detect when to close the popup. For this discussion, refer to this test page at jsFiddle. It is structured like this:

where the a.dwnPageLink

links each open a "Download page"
-- which automatically starts a 

file download after a short delay.

more options

cor-el said

A possible workaround to prevent opening a new tab is to use "Save Link As" in the right-click context menu instead of left-clicking the link.

Dosn't seem to work when trying to download video files.

more options

Reset the browser.

   1.Go to about:config via your Address Bar.
   2.Press the button saying you'll be careful.
   3.Search for browser.newtab.url.
   4.Right click -> Reset.
   5.You might also want to check for any prefs Trovi has set. ...
   6.You might have to restart Firefox for this to work.
more options

browser.newtab.url was not found in search

more options

If you left-click a link then Firefox will first try to open the link in a new file. If Firefox notices that it can't display the file then you get a download dialog, but Firefox may not close the tab. If you can't right-click and use "Save Link As" as a workaround then you will have to close the tab manually yourself.

I don't know if there are extensions that will close the tab automatically in this case.