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) => {
if ( vAPI.net ) {
vAPI.net.removeUnprocessedRequest(tabId);
}
this.onRemovedHandler(tabId, details);
});
}