summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2021-01-09 13:44:07 -0500
committerGaming4JC <g4jc@hyperbola.info>2021-01-09 14:11:59 -0500
commitc19a5c3e41fe07a1a9b79d7b906b5ededa8c766d (patch)
tree7cd00d6bcba7c392a23f94e0f35f78ba87cf4626
parent4f946b0b2cd05f8c9620ba762eab7177f3b56d89 (diff)
downloadiceweasel-uxp-c19a5c3e41fe07a1a9b79d7b906b5ededa8c766d.tar.gz
Backport Basilisk #17 - Reinstate erroneously removed unload event listener
-rw-r--r--base/content/tab-content.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/base/content/tab-content.js b/base/content/tab-content.js
index 000683a..2eae5d3 100644
--- a/base/content/tab-content.js
+++ b/base/content/tab-content.js
@@ -860,6 +860,10 @@ var RefreshBlocker = {
RefreshBlocker.init();
+addEventListener("unload", () => {
+ RefreshBlocker.uninit();
+});
+
addMessageListener("AllowScriptsToClose", () => {
content.QueryInterface(Ci.nsIInterfaceRequestor)
.getInterface(Ci.nsIDOMWindowUtils)