[Basilisk] 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.
This commit is contained in:
Moonchild 2020-07-10 19:09:21 +00:00 committed by Roy Tam
commit 02a893b998

View file

@ -865,11 +865,13 @@ RefreshBlocker.init();
#ifdef MOZ_WEBEXTENSIONS
ExtensionContent.init(this);
#endif
addEventListener("unload", () => {
#ifdef MOZ_WEBEXTENSIONS
ExtensionContent.uninit(this);
#endif
RefreshBlocker.uninit();
});
#endif
addMessageListener("AllowScriptsToClose", () => {
content.QueryInterface(Ci.nsIInterfaceRequestor)