1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-08 12:57:57 +02:00

Clear unprocessed status of removed tabs

This commit is contained in:
Raymond Hill 2023-04-11 22:38:43 -04:00
parent e1500ee88d
commit f0eadae3ba
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -288,6 +288,9 @@ vAPI.Tabs = class {
}); });
} }
browser.tabs.onRemoved.addListener((tabId, details) => { browser.tabs.onRemoved.addListener((tabId, details) => {
if ( vAPI.net ) {
vAPI.net.removeUnprocessedRequest(tabId);
}
this.onRemovedHandler(tabId, details); this.onRemovedHandler(tabId, details);
}); });
} }