diff options
author | Moonchild <moonchild@palemoon.org> | 2023-03-06 22:37:16 +0100 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2023-03-06 22:37:16 +0100 |
commit | 4d38cb76c21607ef3c7b74686730e965343f3909 (patch) | |
tree | 6ac0098b32fcf291ef87df56be6b7ab0b9b31845 /docshell | |
parent | 98e96503e696c04b6478f01c27ff16eef56599b7 (diff) | |
download | uxp-4d38cb76c21607ef3c7b74686730e965343f3909.tar.gz |
Issue #2133 - Part 1: Remove private browsing TP pref.
This removes selectively enabling TP mode in PB windows.
Diffstat (limited to 'docshell')
-rw-r--r-- | docshell/base/LoadContext.cpp | 3 | ||||
-rw-r--r-- | docshell/base/nsDocShell.cpp | 3 |
2 files changed, 0 insertions, 6 deletions
diff --git a/docshell/base/LoadContext.cpp b/docshell/base/LoadContext.cpp index 4c265e4246..761c852793 100644 --- a/docshell/base/LoadContext.cpp +++ b/docshell/base/LoadContext.cpp @@ -197,9 +197,6 @@ LoadContext::IsTrackingProtectionOn(bool* aIsTrackingProtectionOn) if (Preferences::GetBool("privacy.trackingprotection.enabled", false)) { *aIsTrackingProtectionOn = true; - } else if ((mOriginAttributes.mPrivateBrowsingId > 0) && - Preferences::GetBool("privacy.trackingprotection.pbmode.enabled", false)) { - *aIsTrackingProtectionOn = true; } else { *aIsTrackingProtectionOn = false; } diff --git a/docshell/base/nsDocShell.cpp b/docshell/base/nsDocShell.cpp index b07cb15ff1..430f2e614f 100644 --- a/docshell/base/nsDocShell.cpp +++ b/docshell/base/nsDocShell.cpp @@ -13656,9 +13656,6 @@ nsDocShell::IsTrackingProtectionOn(bool* aIsTrackingProtectionOn) { if (Preferences::GetBool("privacy.trackingprotection.enabled", false)) { *aIsTrackingProtectionOn = true; - } else if (UsePrivateBrowsing() && - Preferences::GetBool("privacy.trackingprotection.pbmode.enabled", false)) { - *aIsTrackingProtectionOn = true; } else { *aIsTrackingProtectionOn = false; } |