mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-06 09:37:12 +02:00
code review: cleanup cosmetic filtering engine on shutdown
This commit is contained in:
parent
2914c36c0b
commit
324c26b20c
@ -639,6 +639,10 @@ FilterContainer.prototype.reset = function() {
|
||||
|
||||
this.selectorCache = {};
|
||||
this.selectorCacheCount = 0;
|
||||
if ( this.selectorCacheTimer !== null ) {
|
||||
clearTimeout(this.selectorCacheTimer);
|
||||
this.selectorCacheTimer = null;
|
||||
}
|
||||
|
||||
// permanent
|
||||
// [class], [id]
|
||||
|
@ -41,6 +41,7 @@ vAPI.app.onShutdown = function() {
|
||||
µb.staticFilteringReverseLookup.shutdown();
|
||||
µb.assetUpdater.shutdown();
|
||||
µb.staticNetFilteringEngine.reset();
|
||||
µb.cosmeticFilteringEngine.reset();
|
||||
µb.sessionFirewall.reset();
|
||||
µb.permanentFirewall.reset();
|
||||
µb.permanentFirewall.reset();
|
||||
|
Loading…
Reference in New Issue
Block a user