This commit is contained in:
Raymond Hill 2018-12-18 14:00:23 -05:00
parent 2e7654d429
commit 5dca5285e2
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 3 additions and 7 deletions

View File

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