tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit a1aad2e716e9ba326bfeab248c59f920ce8887e5
parent ab0a72de50974ccb91e61cf67a0205109be1a6b2
Author: kpatenio <kpatenio@mozilla.com>
Date:   Tue, 18 Nov 2025 22:19:54 +0000

Bug 2000728 — add pref to show/hide ipp exceptions in about:preferences. r=ip-protection-reviewers,mconley,fchasen

Differential Revision: https://phabricator.services.mozilla.com/D272968

Diffstat:
Mbrowser/app/profile/firefox.js | 2++
Mbrowser/components/preferences/privacy.js | 13+++++++++++--
2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/browser/app/profile/firefox.js b/browser/app/profile/firefox.js @@ -3517,6 +3517,8 @@ pref("browser.ipProtection.userEnabled", false); pref("browser.ipProtection.variant", ""); // Pref to track number of times the VPN panel is opened pref("browser.ipProtection.panelOpenCount", 0); +// Pref to enable support for site exceptions +pref("browser.ipProtection.features.siteExceptions", false); pref("browser.ipProtection.exceptionsMode", "all"); pref("browser.ipProtection.domainExclusions", ""); pref("browser.ipProtection.domainInclusions", ""); diff --git a/browser/components/preferences/privacy.js b/browser/components/preferences/privacy.js @@ -201,6 +201,7 @@ Preferences.addAll([ // Firefox VPN { id: "browser.ipProtection.variant", type: "string" }, + { id: "browser.ipProtection.features.siteExceptions", type: "bool" }, { id: "browser.ipProtection.exceptionsMode", type: "string" }, { id: "browser.ipProtection.autoStartEnabled", type: "bool" }, { id: "browser.ipProtection.autoStartPrivateEnabled", type: "bool" }, @@ -1413,12 +1414,20 @@ Preferences.addSetting({ pref: "browser.ipProtection.variant", get: prefVal => prefVal == "beta", }); +Preferences.addSetting({ + id: "ipProtectionSiteExceptionsFeatureEnabled", + pref: "browser.ipProtection.features.siteExceptions", +}); // This setting also affects the radio group for site exceptions Preferences.addSetting({ id: "ipProtectionExceptionsMode", pref: "browser.ipProtection.exceptionsMode", - deps: ["ipProtectionVisible"], - visible: ({ ipProtectionVisible }) => ipProtectionVisible.value, + deps: ["ipProtectionVisible", "ipProtectionSiteExceptionsFeatureEnabled"], + visible: ({ + ipProtectionVisible, + ipProtectionSiteExceptionsFeatureEnabled, + }) => + ipProtectionVisible.value && ipProtectionSiteExceptionsFeatureEnabled.value, }); Preferences.addSetting({ id: "ipProtectionExceptionAllListButton",