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 | |
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.
-rw-r--r-- | docshell/base/LoadContext.cpp | 3 | ||||
-rw-r--r-- | docshell/base/nsDocShell.cpp | 3 | ||||
-rw-r--r-- | modules/libpref/init/all.js | 2 |
3 files changed, 0 insertions, 8 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; } diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js index 711b9bb7ef..ed4a7b5483 100644 --- a/modules/libpref/init/all.js +++ b/modules/libpref/init/all.js @@ -1208,8 +1208,6 @@ pref("privacy.popups.disable_from_plugins", 2); pref("privacy.GPCheader.enabled", false); // Enforce tracking protection in all modes pref("privacy.trackingprotection.enabled", false); -// Enforce tracking protection in Private Browsing mode -pref("privacy.trackingprotection.pbmode.enabled", false); pref("dom.event.contextmenu.enabled", true); pref("dom.event.clipboardevents.enabled", true); |