Recent answers to Firefox warns about closing tab so as not to loose the content, can I disable this?https://support.mozilla.org/en-US/questions/9483542013-05-21T08:02:36-07:00Years before, I set up a setting to block onunload from opening popup windows on some advice from a 2013-05-21T08:02:36-07:00finitarryhttps://support.mozilla.org/en-US/questions/948354#answer-438505<p>Years before, I set up a setting to block onunload from opening popup windows on some advice from a website.
</p>
<pre>user_pref("dom.disable_window_onunload", true);</pre>
<pre>Will that still work with the current release of Firefox? If not, will this work?
</pre>
<pre>user_pref("capability.policy.default.Window.onunload", "noAccess");
</pre>That is caused by a script that run on the page and is triggered by an onbeforeunload event
https:/2013-01-25T14:51:41-08:00cor-elhttps://support.mozilla.org/en-US/questions/948354#answer-401906<p>That is caused by a script that run on the page and is triggered by an onbeforeunload event
</p>
<ul><li><a href="https://developer.mozilla.org/en/DOM/window.onbeforeunload" rel="nofollow">https://developer.mozilla.org/en/DOM/window.onbeforeunload</a>
</li><li><a href="https://developer.mozilla.org/en/DOM/window.onunload" rel="nofollow">https://developer.mozilla.org/en/DOM/window.onunload</a>
</li></ul>
<p>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
</p>
<ul><li>void(onbeforeunload = null);
</li></ul>
<ul><li>Greasemonkey: <a href="https://addons.mozilla.org/firefox/addon/greasemonkey/" rel="nofollow">https://addons.mozilla.org/firefox/addon/greasemonkey/</a>
</li></ul>