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
1 changed files with 3 additions and 0 deletions

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);
});
}