|
@ -373,6 +373,10 @@ PageStore.prototype.dispose = function() { |
|
|
/******************************************************************************/ |
|
|
/******************************************************************************/ |
|
|
|
|
|
|
|
|
PageStore.prototype.recordRequest = function(type, url, block) { |
|
|
PageStore.prototype.recordRequest = function(type, url, block) { |
|
|
|
|
|
if ( !this.requests.createEntryIfNotExists(url, type, block) ) { |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// Count blocked/allowed requests
|
|
|
// Count blocked/allowed requests
|
|
|
this.requestStats.record(type, block); |
|
|
this.requestStats.record(type, block); |
|
|
|
|
|
|
|
@ -387,10 +391,6 @@ PageStore.prototype.recordRequest = function(type, url, block) { |
|
|
this.perLoadAllowedRequestCount++; |
|
|
this.perLoadAllowedRequestCount++; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if ( !this.requests.createEntryIfNotExists(url, type, block) ) { |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var hostname = µm.URI.hostnameFromURI(url); |
|
|
var hostname = µm.URI.hostnameFromURI(url); |
|
|
|
|
|
|
|
|
this.distinctRequestCount++; |
|
|
this.distinctRequestCount++; |
|
|