From 87307294cc00649ed63f3d90350bc4cb30941335 Mon Sep 17 00:00:00 2001 From: hackademix Date: Thu, 15 Jun 2023 23:23:19 +0200 Subject: [PATCH] [TabGuard] Short circuit requests in non-anonymized tabs. --- src/bg/TabGuard.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bg/TabGuard.js b/src/bg/TabGuard.js index 831215e..2d8f700 100644 --- a/src/bg/TabGuard.js +++ b/src/bg/TabGuard.js @@ -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);