summaryrefslogtreecommitdiff
path: root/netwerk
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2023-03-07 00:01:58 +0100
committerMoonchild <moonchild@palemoon.org>2023-03-07 00:01:58 +0100
commit517ab728ac483af67fadb6cb37c1d43905a36a74 (patch)
treefe23ac2d4707c8906b97345b250d710bcbcf1d5e /netwerk
parent4d38cb76c21607ef3c7b74686730e965343f3909 (diff)
downloaduxp-517ab728ac483af67fadb6cb37c1d43905a36a74.tar.gz
Issue #2133 - Part 2: Remove nsIPrivateBrowsingTrackingProtectionWhitelist
This removes the in-memory whitelist for PB mode.
Diffstat (limited to 'netwerk')
-rw-r--r--netwerk/base/nsChannelClassifier.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/netwerk/base/nsChannelClassifier.cpp b/netwerk/base/nsChannelClassifier.cpp
index 5df60e9516..ce06cab8b6 100644
--- a/netwerk/base/nsChannelClassifier.cpp
+++ b/netwerk/base/nsChannelClassifier.cpp
@@ -19,7 +19,6 @@
#include "nsILoadContext.h"
#include "nsIParentChannel.h"
#include "nsIPermissionManager.h"
-#include "nsIPrivateBrowsingTrackingProtectionWhitelist.h"
#include "nsIProtocolHandler.h"
#include "nsIScriptError.h"
#include "nsIScriptSecurityManager.h"
@@ -160,25 +159,6 @@ nsChannelClassifier::ShouldEnableTrackingProtection(nsIChannel *aChannel,
*result = true;
}
- // In Private Browsing Mode we also check against an in-memory list.
- if (NS_UsePrivateBrowsing(aChannel)) {
- nsCOMPtr<nsIPrivateBrowsingTrackingProtectionWhitelist> pbmtpWhitelist =
- do_GetService(NS_PBTRACKINGPROTECTIONWHITELIST_CONTRACTID, &rv);
- NS_ENSURE_SUCCESS(rv, rv);
-
- bool exists = false;
- rv = pbmtpWhitelist->ExistsInAllowList(topWinURI, &exists);
- NS_ENSURE_SUCCESS(rv, rv);
-
- if (exists) {
- mIsAllowListed = true;
- LOG(("nsChannelClassifier[%p]: Allowlisting channel[%p] in PBM for %s",
- this, aChannel, escaped.get()));
- }
-
- *result = !exists;
- }
-
// Tracking protection will be enabled so return without updating
// the security state. If any channels are subsequently cancelled
// (page elements blocked) the state will be then updated.