Firefox warns about closing tab so as not to loose the content, can I disable this?
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
Additional System Details
Installed Plug-ins
- Next Generation Java Plug-in 10.11.2 for Mozilla browsers
- Shockwave Flash 11.5 r502
- VLC media player Web Plugin 2.0.2
- Facebook Video Calling Plugin
- Google Update
- Adobe PDF Plug-In For Firefox and Netscape "9.5.2"
- 4.1.10329.0
- NPWLPG
- DivX Web Player version 2.1.0.900
- DivX OVS Helper Plug-in
- Wacom Dynamic Link Library
Application
- User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0
More Information
That is caused by a script that run on the page and is triggered by an onbeforeunload event
- https://developer.mozilla.org/en/DOM/window.onbeforeunload
- https://developer.mozilla.org/en/DOM/window.onunload
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);
- Greasemonkey: https://addons.mozilla.org/firefox/addon/greasemonkey/
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");