From c19a5c3e41fe07a1a9b79d7b906b5ededa8c766d Mon Sep 17 00:00:00 2001 From: Gaming4JC Date: Sat, 9 Jan 2021 13:44:07 -0500 Subject: Backport Basilisk #17 - Reinstate erroneously removed unload event listener --- base/content/tab-content.js | 4 ++++ 1 file changed, 4 insertions(+) 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) -- cgit v1.2.3