mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-24 11:22:44 +01:00
Fix regression introduced in 9b27a98f90 (diff-f7413cbfa6561a980810c682fa4b1a12R638)
This commit is contained in:
parent
2e7654d429
commit
5dca5285e2
@ -90,11 +90,7 @@ NetFilteringResultCache.prototype.dispose = function() {
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
NetFilteringResultCache.prototype.rememberResult = function(
|
||||
fctxt,
|
||||
result,
|
||||
logData
|
||||
) {
|
||||
NetFilteringResultCache.prototype.rememberResult = function(fctxt, result) {
|
||||
if ( fctxt.tabId <= 0 ) { return; }
|
||||
if ( this.results.size === 0 ) {
|
||||
this.pruneAsync();
|
||||
@ -102,7 +98,7 @@ NetFilteringResultCache.prototype.rememberResult = function(
|
||||
const key = fctxt.getDocHostname() + ' ' + fctxt.type + ' ' + fctxt.url;
|
||||
this.results.set(key, {
|
||||
result: result,
|
||||
logData: logData,
|
||||
logData: fctxt.filter,
|
||||
tstamp: Date.now()
|
||||
});
|
||||
if ( result !== 1 ) { return; }
|
||||
@ -637,7 +633,7 @@ PageStore.prototype.filterRequest = function(fctxt) {
|
||||
}
|
||||
|
||||
if ( cacheableResult ) {
|
||||
this.netFilteringCache.rememberResult(fctxt, result, this.logData);
|
||||
this.netFilteringCache.rememberResult(fctxt, result);
|
||||
} else if ( result === 1 && this.collapsibleResources.has(requestType) ) {
|
||||
this.netFilteringCache.rememberBlock(fctxt, true);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user