summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)