tor-browser

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

ipprotection-constants.mjs (1271B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this
      3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 export const LINKS = Object.freeze({
      6  // Used for the upgrade button in the main panel view
      7  get PRODUCT_URL() {
      8    return (
      9      Services.prefs.getCharPref(
     10        "browser.ipProtection.productVpn.endpoint",
     11        "https://www.mozilla.org"
     12      ) +
     13      "/products/vpn/?utm_medium=firefox-desktop&utm_source=freevpnpilot&utm_campaign=evergreen&utm_content=vpnpanel"
     14    );
     15  },
     16 
     17  SUPPORT_URL: "https://support.mozilla.org/kb/use-ip-concealment-in-firefox",
     18 });
     19 
     20 export const ERRORS = Object.freeze({
     21  GENERIC: "generic-error",
     22 });
     23 
     24 export const SIGNIN_DATA = Object.freeze({
     25  where: "tab",
     26  entrypoint: "desktop-fx-vpn",
     27  autoClose: false,
     28  extraParams: {
     29    service: "sync",
     30    entrypoint_experiment: "fx-vpn-pilot",
     31    entrypoint_variation: "alpha",
     32    utm_source: "callout",
     33    utm_campaign: "fx-vpn-pilot",
     34    utm_medium: "firefox-desktop",
     35    utm_term: "fx-vpn-pilot-panel-button",
     36  },
     37 });
     38 
     39 export const ONBOARDING_PREF_FLAGS = {
     40  EVER_TURNED_ON_AUTOSTART: 1 << 0,
     41  EVER_USED_SITE_EXCEPTIONS: 1 << 1,
     42  EVER_TURNED_ON_VPN: 1 << 2,
     43 };