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 fctxt = µb.filteringContext;
|
||||||
const t0 = self.performance.now();
|
const t0 = self.performance.now();
|
||||||
for ( const request of requests ) {
|
for ( const request of requests ) {
|
||||||
fctxt.url = request.url;
|
fctxt.setURL(request.url);
|
||||||
fctxt.setDocOriginFromURL(request.frameUrl);
|
fctxt.setDocOriginFromURL(request.frameUrl);
|
||||||
fctxt.setType(request.cpt);
|
fctxt.setType(request.cpt);
|
||||||
void this.matchString(fctxt);
|
void this.matchString(fctxt);
|
||||||
|
|
Loading…
Reference in New Issue