Commit 214287b1 authored by henry's avatar henry Committed by Pier Angelo Vendrame
Browse files

TB 42583: Modify moz-support-link for Tor Browser.

parent 356d3c59
Loading
Loading
Loading
Loading
+1 −13
Original line number Diff line number Diff line
@@ -107,19 +107,7 @@ export default class MozSupportLink extends HTMLAnchorElement {
    const torManualPrefix = "tor-manual:";
    if (supportPage.startsWith(torManualPrefix)) {
      const torManualPage = supportPage.substring(torManualPrefix.length);
      const [page, anchor] = torManualPage.split("_", 2);

      let locale = Services.locale.appLocaleAsBCP47;
      if (locale === "ja-JP-macos") {
        // Convert quirk-locale to the locale used for tor project.
        locale = "ja";
      }

      let href = `https://tb-manual.torproject.org/${locale}/${page}/`;
      if (anchor) {
        href = `${href}#${anchor}`;
      }
      this.href = href;
      this.href = `about:manual#${torManualPage}`;
      return;
    }
    // For base-browser we sometimes want to override firefox support links with