Do not clobber rightful onBeforeSuspendableRequest listener

This commit is contained in:
Raymond Hill 2023-04-12 11:19:12 -04:00
parent bc54179edd
commit b47ecb6bfa
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -1376,6 +1376,7 @@ vAPI.Net = class {
// soon as there is a call to clear for one tab.
removeUnprocessedRequest() {
this.unprocessedTabs.clear();
if ( this.deferredSuspendableListener === undefined ) { return true; }
if ( this.unprocessedTabs.size !== 0 ) { return false; }
this.suspendableListener = this.deferredSuspendableListener;
this.deferredSuspendableListener = undefined;