mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 23:38:38 +09:00
[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:
parent
be8bea50ff
commit
02a893b998
1 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue