Properly set resource URL in benchmark loop

This commit is contained in:
Raymond Hill 2019-02-17 07:45:05 -05:00
parent 553ba2c7ed
commit 3b81841dc0
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 1 additions and 1 deletions

View File

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