mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
fix load-time race condition for high-generic cosmetic filters
potentially causing high-generic cosmetic filters to not be applied because the MRU cache contains an empty list of high-generic filters when there is a query from a content script for cosmetic filters before they are fully loaded and ready.
This commit is contained in:
parent
41a2012b2d
commit
dcd98f4efa
1 changed files with 2 additions and 0 deletions
|
|
@ -554,7 +554,9 @@ FilterContainer.prototype.freeze = function() {
|
|||
}
|
||||
}
|
||||
this.highlyGeneric.simple.str = Array.from(this.highlyGeneric.simple.dict).join(',\n');
|
||||
this.highlyGeneric.simple.mru.reset();
|
||||
this.highlyGeneric.complex.str = Array.from(this.highlyGeneric.complex.dict).join(',\n');
|
||||
this.highlyGeneric.complex.mru.reset();
|
||||
|
||||
this.frozen = true;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue