mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-20 13:03:56 +02:00
this fixes #772
This commit is contained in:
parent
974fc95da6
commit
58b54cf9f9
2 changed files with 6 additions and 2 deletions
|
@ -408,9 +408,10 @@ SelectorCacheEntry.prototype.add = function(selectors, type) {
|
|||
// https://github.com/gorhill/uBlock/issues/420
|
||||
SelectorCacheEntry.prototype.remove = function(type) {
|
||||
this.lastAccessTime = Date.now();
|
||||
if ( type === 'cosmetic' ) {
|
||||
if ( type === undefined || type === 'cosmetic' ) {
|
||||
this.cosmetic = {};
|
||||
} else {
|
||||
}
|
||||
if ( type === undefined || type === 'net' ) {
|
||||
this.net = {};
|
||||
this.netCount = 0;
|
||||
}
|
||||
|
|
|
@ -752,6 +752,9 @@ var onMessage = function(request, sender, callback) {
|
|||
break;
|
||||
|
||||
case 'setSessionFirewallRules':
|
||||
// https://github.com/gorhill/uBlock/issues/772
|
||||
µb.cosmeticFilteringEngine.removeFromSelectorCache('*');
|
||||
|
||||
µb.sessionFirewall.fromString(request.rules);
|
||||
response = getFirewallRules();
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue