mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Do not clobber rightful onBeforeSuspendableRequest listener
This commit is contained in:
parent
bc54179edd
commit
b47ecb6bfa
1 changed files with 1 additions and 0 deletions
|
|
@ -1376,6 +1376,7 @@ vAPI.Net = class {
|
||||||
// soon as there is a call to clear for one tab.
|
// soon as there is a call to clear for one tab.
|
||||||
removeUnprocessedRequest() {
|
removeUnprocessedRequest() {
|
||||||
this.unprocessedTabs.clear();
|
this.unprocessedTabs.clear();
|
||||||
|
if ( this.deferredSuspendableListener === undefined ) { return true; }
|
||||||
if ( this.unprocessedTabs.size !== 0 ) { return false; }
|
if ( this.unprocessedTabs.size !== 0 ) { return false; }
|
||||||
this.suspendableListener = this.deferredSuspendableListener;
|
this.suspendableListener = this.deferredSuspendableListener;
|
||||||
this.deferredSuspendableListener = undefined;
|
this.deferredSuspendableListener = undefined;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue