Need valid tab id for scriptlet injection

This commit is contained in:
Raymond Hill 2023-03-03 12:14:36 -05:00
parent a60a5c2772
commit 033aa9cfad
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 1 additions and 0 deletions

View File

@ -1135,6 +1135,7 @@ const webRequest = {
vAPI.net.addListener(
'onResponseStarted',
details => {
if ( details.tabId === -1 ) { return; }
const pageStore = µb.pageStoreFromTabId(details.tabId);
if ( pageStore === null ) { return; }
if ( pageStore.getNetFilteringSwitch() === false ) { return; }