Commit 8e54f904 authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame 🎃 Committed by morgan
Browse files

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

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

This reverts commit 6e6a1e36.
parent 8a2eb2f2
Loading
Loading
Loading
Loading
+13 −1
Original line number Diff line number Diff line
@@ -107,7 +107,19 @@ export default class MozSupportLink extends HTMLAnchorElement {
    const torManualPrefix = "tor-manual:";
    if (supportPage.startsWith(torManualPrefix)) {
      const torManualPage = supportPage.substring(torManualPrefix.length);
      this.href = `about:manual#${torManualPage}`;
      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;
      return;
    }
    // For base-browser we sometimes want to override firefox support links with