1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-05 11:37:01 +02:00

Move faster test first

This commit is contained in:
Raymond Hill 2023-04-12 18:08:11 -04:00
parent bb4ca42dc3
commit 86477dd4e5
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -1370,11 +1370,11 @@ vAPI.Net = class {
this.lastUnprocessedRequestTime = Date.now();
}
hasUnprocessedRequest(tabId) {
if ( this.unprocessedTabs.size === 0 ) { return false; }
if ( (Date.now() - this.lastUnprocessedRequestTime) > 60000 ) {
this.removeUnprocessedRequest();
}
return this.unprocessedTabs.size !== 0 &&
this.unprocessedTabs.has(tabId);
return this.unprocessedTabs.has(tabId);
}
removeUnprocessedRequest(tabId) {
if ( this.deferredSuspendableListener === undefined ) {