Commit f5edc9e2 authored by henry's avatar henry Committed by henry
Browse files

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

TB 43864: Move moz-support-link "preferences" patch out of tor-browser
commits.

Should be dropped at the next rebase.
parent 17f8c468
Loading
Loading
Loading
Loading
+0 −13
Changes for toolkit/content/widgets/moz-support-link/moz-support-link.mjs: 0 added lines, 13 removed lines.
Original line number Diff line number Diff line
@@ -113,19 +113,6 @@ export default class MozSupportLink extends HTMLAnchorElement {
      return;
    }
    let supportPage = this.getAttribute("support-page") ?? "";
    // For tor-browser we sometimes want to override firefox support links with
    // our own.
    // See tor-browser#40899.
    switch (supportPage) {
      case "preferences":
        // Shown twice in preferences, both as `{ -brand-short-name } Support`.
        // Instead of directing to support for preferences, we link to general
        // tor browser support.
        // See tor-browser#32092.
        this.href = "https://support.torproject.org/tbb";
        return;
      // Fall through to support.mozilla.org
    }
    let base = MozSupportLink.SUPPORT_URL + supportPage;
    this.href = this.hasAttribute("utm-content")
      ? formatUTMParams(this.getAttribute("utm-content"), base)