mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-06 09:37:12 +02:00
Firefox: this fixes uBlock lingering in memory after disabling it
This commit is contained in:
parent
4a1219f723
commit
6c1678d718
@ -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;
|
||||
|
||||
})();
|
||||
|
@ -39,6 +39,7 @@ var µb = µBlock;
|
||||
|
||||
vAPI.app.onShutdown = function() {
|
||||
µb.staticFilteringReverseLookup.shutdown();
|
||||
µb.assetUpdater.shutdown();
|
||||
µb.staticNetFilteringEngine.reset();
|
||||
µb.sessionFirewall.reset();
|
||||
µb.permanentFirewall.reset();
|
||||
|
Loading…
Reference in New Issue
Block a user