tor-browser

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

commit f02daab3a3b1f6bb0ba4bf9bb751a2051311d1fa
parent 80a138ca12d65bc0bd39cfdf50b056c15b678645
Author: Andrea Marchesini <amarchesini@mozilla.com>
Date:   Thu, 13 Nov 2025 19:10:24 +0000

Bug 1997287 - IPProtection: support stage product endpoint, r=ip-protection-reviewers,fchasen

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

Diffstat:
Mbrowser/components/ipprotection/content/ipprotection-constants.mjs | 16++++++++++------
Mbrowser/components/ipprotection/docs/Preferences.rst | 3+++
2 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/browser/components/ipprotection/content/ipprotection-constants.mjs b/browser/components/ipprotection/content/ipprotection-constants.mjs @@ -3,13 +3,17 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ export const LINKS = Object.freeze({ - // Used for the download button after a user has purchased an upgrade - DOWNLOAD_URL: "https://www.mozilla.org/en-US/products/vpn/download/", // Used for the upgrade button in the main panel view - PRODUCT_URL: - "https://www.mozilla.org/products/vpn/?utm_medium=firefox-desktop&utm_source=freevpnpilot&utm_campaign=evergreen&utm_content=vpnpanel", - SIGNIN_URL: - "https://accounts.firefox.com?entrypoint=desktop-fx-vpn&service=sync&entrypoint_experiment=fx-vpn-pilot&entrypoint_variation=alpha", + get PRODUCT_URL() { + return ( + Services.prefs.getCharPref( + "browser.ipProtection.productVpn.endpoint", + "https://www.mozilla.org" + ) + + "/products/vpn/?utm_medium=firefox-desktop&utm_source=freevpnpilot&utm_campaign=evergreen&utm_content=vpnpanel" + ); + }, + SUPPORT_URL: "https://support.mozilla.org/kb/use-ip-concealment-in-firefox", }); diff --git a/browser/components/ipprotection/docs/Preferences.rst b/browser/components/ipprotection/docs/Preferences.rst @@ -47,6 +47,9 @@ Networking and routing ``browser.ipProtection.guardian.endpoint`` (string, default: ``"https://vpn.mozilla.org/"``) Endpoint for the server‑side infrastructure. +``browser.ipProtection.productVpn.endpoint`` (string, default: ``"https://www.mozilla.org/"``) + Endpoint for the production mozilla webservice. + ``browser.ipProtection.mode`` (integer, default: ``0``) Selects which requests are proxied by ``IPPChannelFilter``: ``0`` routes all traffic (``MODE_FULL``), ``1`` only private browsing windows