mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
More aggressively clear the unprocessed-request status
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/2589
This commit is contained in:
parent
be794a8de5
commit
b9e055c0e1
1 changed files with 5 additions and 2 deletions
|
|
@ -1305,8 +1305,11 @@ vAPI.Net = class {
|
|||
return this.unprocessedTabs.size !== 0 &&
|
||||
this.unprocessedTabs.has(tabId);
|
||||
}
|
||||
removeUnprocessedRequest(tabId) {
|
||||
this.unprocessedTabs.delete(tabId);
|
||||
// https://github.com/uBlockOrigin/uBlock-issues/issues/2589
|
||||
// - Aggressively clear the unprocessed-request status of all tabs as
|
||||
// soon as there is a call to clear for one tab.
|
||||
removeUnprocessedRequest() {
|
||||
this.unprocessedTabs.clear();
|
||||
if ( this.unprocessedTabs.size !== 0 ) { return false; }
|
||||
this.suspendableListener = this.deferredSuspendableListener;
|
||||
this.deferredSuspendableListener = undefined;
|
||||
|
|
|
|||
Loading…
Reference in a new issue