1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-05 18:32:30 +01:00

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

View File

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