[TabGuard] Short circuit requests in non-anonymized tabs.

This commit is contained in:
hackademix 2023-06-15 23:23:19 +02:00
parent df3c164304
commit 87307294cc
No known key found for this signature in database
GPG Key ID: 231A83AFDA9C2434
1 changed files with 3 additions and 0 deletions

View File

@ -123,6 +123,9 @@ var TabGuard = (() => {
debug("[TabGuard] User-activated same-site navigation, loading with auth.", tabId, request);
return;
}
} else if (!anonymizedTabs.has(tabId)) {
// short circuit requests in non-anonymized tabs
return;
}
let targetDomain = getDomain(url);