ابحث في الدعم

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

FF closes tab without asking

  • 6 ردود
  • 1 has this problem
  • 3178 views
  • آخر ردّ كتبه doniel

more options

There's one site I log into regularly that's suddenly become inaccessible. After I log in, the tab simply disappears. When I do the same in IE, I get a message saying, "The webpage you are visiting is trying to close the tab. Do you want to close this tab?" I click on No and I'm in. But no such message appears in FF.

This began a few days ago, and I've made no changes to FF in months. However, FF may have updated itself (to 44.0.2) recently and that could possibly be the cause.

الحل المُختار

Here's one more preference... Normally, pages cannot close themselves unless they were opened with a script. You can check that this protection was not disabled:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful.

(2) In the search box above the list, type or paste dom. and pause while the list is filtered

(3) If the dom.allow_scripts_to_close_windows preference is bolded and "user set" to true, double-click it to restore the default value of false

Read this answer in context 👍 1

All Replies (6)

more options

Are you using a bookmark or are you starting with the main (home) page of this website?

If you use a bookmark then try to navigate to that page starting with the main page in case this bookmark or link is currently broken or otherwise not working properly.


You can set browser.tabs.closeWindowWithLastTab to false on the about:config page to prevent closing the last tab from closing that window and make a close button appear if only one tab is open.

You can open the about:config page via the location/address bar. You can accept the warning and click "I'll be careful" to continue.

more options

What is the web address?

more options

cor-el, thank you for your suggestions.

The bookmark is fine. As I wrote, I can get to the login page. It's after I enter my username and p/w and click on Log In that the tab closes.

Toggling the setting to False didn't help.


FredMcD, from the above, you'll understand that the address won't help you, since you won't be able to log in.

Modified by doniel

more options

It is possible that the login page is supposed to open in a new window. If you would open such a page directly instead of opening the page from a link then a script can try to close that tab and instead closes the window.

You can possibly check the browser.link.open_newwindow prefs on the about:config page to see if they have the default and if not then rest them via the right-click context menu to the default value.

For links opened via JavaScript you can look at this pref:

You can open the about:config page via the location/address bar. You can accept the warning and click "I'll be careful" to continue.

more options

الحل المُختار

Here's one more preference... Normally, pages cannot close themselves unless they were opened with a script. You can check that this protection was not disabled:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful.

(2) In the search box above the list, type or paste dom. and pause while the list is filtered

(3) If the dom.allow_scripts_to_close_windows preference is bolded and "user set" to true, double-click it to restore the default value of false

more options

jscher, that did it! Thank you. I wonder how that got changed to True recently.

cor-el, thank you for your suggestions. To me, it's not important that the solution lay elsewhere. What's important is that you were there, trying to help me.