mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01:00
Firefox: this fixes uBlock lingering in memory after disabling it
This commit is contained in:
parent
4a1219f723
commit
6c1678d718
2 changed files with 11 additions and 0 deletions
|
@ -1471,6 +1471,16 @@ exports.restart = function() {
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
|
// Call when disabling uBlock, to ensure it doesn't stick around as a detached
|
||||||
|
// window object in Firefox.
|
||||||
|
|
||||||
|
exports.shutdown = function() {
|
||||||
|
suspendUpdateDaemon();
|
||||||
|
reset();
|
||||||
|
};
|
||||||
|
|
||||||
|
/******************************************************************************/
|
||||||
|
|
||||||
return exports;
|
return exports;
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
|
|
@ -39,6 +39,7 @@ var µb = µBlock;
|
||||||
|
|
||||||
vAPI.app.onShutdown = function() {
|
vAPI.app.onShutdown = function() {
|
||||||
µb.staticFilteringReverseLookup.shutdown();
|
µb.staticFilteringReverseLookup.shutdown();
|
||||||
|
µb.assetUpdater.shutdown();
|
||||||
µb.staticNetFilteringEngine.reset();
|
µb.staticNetFilteringEngine.reset();
|
||||||
µb.sessionFirewall.reset();
|
µb.sessionFirewall.reset();
|
||||||
µb.permanentFirewall.reset();
|
µb.permanentFirewall.reset();
|
||||||
|
|
Loading…
Reference in a new issue