mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-23 15:47:30 +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
|
#ifdef MOZ_WEBEXTENSIONS
|
||||||
ExtensionContent.init(this);
|
ExtensionContent.init(this);
|
||||||
|
#endif
|
||||||
addEventListener("unload", () => {
|
addEventListener("unload", () => {
|
||||||
|
#ifdef MOZ_WEBEXTENSIONS
|
||||||
ExtensionContent.uninit(this);
|
ExtensionContent.uninit(this);
|
||||||
|
#endif
|
||||||
RefreshBlocker.uninit();
|
RefreshBlocker.uninit();
|
||||||
});
|
});
|
||||||
#endif
|
|
||||||
|
|
||||||
addMessageListener("AllowScriptsToClose", () => {
|
addMessageListener("AllowScriptsToClose", () => {
|
||||||
content.QueryInterface(Ci.nsIInterfaceRequestor)
|
content.QueryInterface(Ci.nsIInterfaceRequestor)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue