mirror of https://github.com/gorhill/uBlock.git
Properly set resource URL in benchmark loop
This commit is contained in:
parent
553ba2c7ed
commit
3b81841dc0
|
@ -2754,7 +2754,7 @@ FilterContainer.prototype.benchmark = function() {
|
|||
const fctxt = µb.filteringContext;
|
||||
const t0 = self.performance.now();
|
||||
for ( const request of requests ) {
|
||||
fctxt.url = request.url;
|
||||
fctxt.setURL(request.url);
|
||||
fctxt.setDocOriginFromURL(request.frameUrl);
|
||||
fctxt.setType(request.cpt);
|
||||
void this.matchString(fctxt);
|
||||
|
|
Loading…
Reference in New Issue