Pier Angelo Vendrame pushed to branch tor-browser-115.3.0esr-13.0-1 at The Tor Project / Applications / Tor Browser

Commits:

1 changed file:

Changes:

  • toolkit/content/widgets/moz-support-link/moz-support-link.mjs
    ... ... @@ -103,6 +103,19 @@ export default class MozSupportLink extends HTMLAnchorElement {
    103 103
     
    
    104 104
       #setHref() {
    
    105 105
         let supportPage = this.getAttribute("support-page") ?? "";
    
    106
    +    // For tor-browser we sometimes want to override firefox support links with
    
    107
    +    // our own.
    
    108
    +    // See tor-browser#40899.
    
    109
    +    switch (supportPage) {
    
    110
    +      case "preferences":
    
    111
    +        // Shown twice in preferences, both as `{ -brand-short-name } Support`.
    
    112
    +        // Instead of directing to support for preferences, we link to general
    
    113
    +        // tor browser support.
    
    114
    +        // See tor-browser#32092.
    
    115
    +        this.href = "https://support.torproject.org/tbb"
    
    116
    +        return;
    
    117
    +      // Fall through to support.mozilla.org
    
    118
    +    }
    
    106 119
         let base = MozSupportLink.SUPPORT_URL + supportPage;
    
    107 120
         this.href = this.hasAttribute("utm-content")
    
    108 121
           ? formatUTMParams(this.getAttribute("utm-content"), base)