diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2021-01-09 13:44:07 -0500 |
---|---|---|
committer | Gaming4JC <g4jc@hyperbola.info> | 2021-01-09 14:11:59 -0500 |
commit | c19a5c3e41fe07a1a9b79d7b906b5ededa8c766d (patch) | |
tree | 7cd00d6bcba7c392a23f94e0f35f78ba87cf4626 | |
parent | 4f946b0b2cd05f8c9620ba762eab7177f3b56d89 (diff) | |
download | iceweasel-uxp-c19a5c3e41fe07a1a9b79d7b906b5ededa8c766d.tar.gz |
Backport Basilisk #17 - Reinstate erroneously removed unload event listener
-rw-r--r-- | base/content/tab-content.js | 4 |
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) |