Skip to content
Snippets Groups Projects
Commit ba5e4b14 authored by henry's avatar henry
Browse files

fixup! Bug 2176: Rebrand Firefox to TorBrowser

Bug 41910: Restore tor browser help link in about:preferences.
parent cea59f54
No related branches found
Tags FIREFOX_102_12_0esr_BUILD1
1 merge request!807Restore tor browser help link in about:preferences
......@@ -103,6 +103,19 @@ export default class MozSupportLink extends HTMLAnchorElement {
#setHref() {
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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment