Windows 10 will reach EOS (end of support) on October 14, 2025. For more information, see this article.

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

Firefox warns about closing tab so as not to loose the content, can I disable this?

  • 2 replies
  • 2 have this problem
  • 3 views
  • Last reply by finitarry

more options

I have various browsing sessions, one is for email, one for studies etc. With one of the browsing sessions when I try to close a tab, firefox asks if I really want to close this tab, because for some reason it thinks I'm writing a message. This is really starting to get on my nerve, not because of firefox, but because of the website that triggers these popups.

Is there a way to disable these?

I've trying so hard to find an answer, so I would be really grateful for your help!

Blessings, Janne

I have various browsing sessions, one is for email, one for studies etc. With one of the browsing sessions when I try to close a tab, firefox asks if I really want to close this tab, because for some reason it thinks I'm writing a message. This is really starting to get on my nerve, not because of firefox, but because of the website that triggers these popups. Is there a way to disable these? I've trying so hard to find an answer, so I would be really grateful for your help! Blessings, Janne

All Replies (2)

more options

That is caused by a script that run on the page and is triggered by an onbeforeunload event

You probably can't disable such a warning alert, but you can check if you can find a Greasemonkey script to disable such an event

  • void(onbeforeunload = null);
more options

Years before, I set up a setting to block onunload from opening popup windows on some advice from a website.

user_pref("dom.disable_window_onunload", true);
Will that still work with the current release of Firefox?  If not, will this work?
user_pref("capability.policy.default.Window.onunload", "noAccess");