1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-15 15:32:28 +02:00
This commit is contained in:
gorhill 2015-02-11 17:28:19 -05:00
parent 974fc95da6
commit 58b54cf9f9
2 changed files with 6 additions and 2 deletions

View File

@ -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;
}

View File

@ -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;