mirror of https://github.com/gorhill/uBlock.git
More aggressively clear the unprocessed-request status
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/2589
This commit is contained in:
parent
f661196691
commit
bc54179edd
|
@ -1371,8 +1371,11 @@ vAPI.Net = class {
|
||||||
return this.unprocessedTabs.size !== 0 &&
|
return this.unprocessedTabs.size !== 0 &&
|
||||||
this.unprocessedTabs.has(tabId);
|
this.unprocessedTabs.has(tabId);
|
||||||
}
|
}
|
||||||
removeUnprocessedRequest(tabId) {
|
// https://github.com/uBlockOrigin/uBlock-issues/issues/2589
|
||||||
this.unprocessedTabs.delete(tabId);
|
// - 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; }
|
if ( this.unprocessedTabs.size !== 0 ) { return false; }
|
||||||
this.suspendableListener = this.deferredSuspendableListener;
|
this.suspendableListener = this.deferredSuspendableListener;
|
||||||
this.deferredSuspendableListener = undefined;
|
this.deferredSuspendableListener = undefined;
|
||||||
|
|
|
@ -499,7 +499,7 @@ const popupDataFromTabId = function(tabId, tabTitle) {
|
||||||
tabId,
|
tabId,
|
||||||
tabTitle,
|
tabTitle,
|
||||||
tooltipsDisabled: µbus.tooltipsDisabled,
|
tooltipsDisabled: µbus.tooltipsDisabled,
|
||||||
hasUnprocessedRequest: vAPI && vAPI.net.hasUnprocessedRequest(tabId),
|
hasUnprocessedRequest: vAPI.net && vAPI.net.hasUnprocessedRequest(tabId),
|
||||||
};
|
};
|
||||||
|
|
||||||
if ( µbhs.uiPopupConfig !== 'unset' ) {
|
if ( µbhs.uiPopupConfig !== 'unset' ) {
|
||||||
|
|
Loading…
Reference in New Issue