diff options
author | Moonchild <moonchild@palemoon.org> | 2020-07-10 19:09:21 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-07-10 19:09:21 +0000 |
commit | 61fb611093893ac350c98344811069b5fc8c09a4 (patch) | |
tree | 4ab861dfad47680542e3dbcbcef6489caf5a31be | |
parent | 08794b6512b00ac8c147d2723281a85f020ca754 (diff) | |
download | basilisk-61fb611093893ac350c98344811069b5fc8c09a4.tar.gz |
Issue #17 - Reinstate erroneously removed unload event listener
Looks like this was just lazily lumped in with WebExtension stuff and got
removed as a result. This should prevent the autorefresh blocker from leaking.
-rw-r--r-- | basilisk/base/content/tab-content.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/basilisk/base/content/tab-content.js b/basilisk/base/content/tab-content.js index 000683a..2eae5d3 100644 --- a/basilisk/base/content/tab-content.js +++ b/basilisk/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) |