[tbb-commits] [Git][tpo/applications/tor-browser][tor-browser-115.3.0esr-13.0-1] fixup! Bug 2176: Rebrand Firefox to TorBrowser
Pier Angelo Vendrame (@pierov)
git at gitlab.torproject.org
Thu Sep 28 16:23:43 UTC 2023
Pier Angelo Vendrame pushed to branch tor-browser-115.3.0esr-13.0-1 at The Tor Project / Applications / Tor Browser
Commits:
ba5e4b14 by Henry Wilkes at 2023-09-28T17:20:49+01:00
fixup! Bug 2176: Rebrand Firefox to TorBrowser
Bug 41910: Restore tor browser help link in about:preferences.
- - - - -
1 changed file:
- toolkit/content/widgets/moz-support-link/moz-support-link.mjs
Changes:
=====================================
toolkit/content/widgets/moz-support-link/moz-support-link.mjs
=====================================
@@ -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)
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/ba5e4b148c97e0fb00c47dc26276f0b889eb1134
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/ba5e4b148c97e0fb00c47dc26276f0b889eb1134
You're receiving this email because of your account on gitlab.torproject.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tbb-commits/attachments/20230928/addeb678/attachment-0001.htm>
More information about the tbb-commits
mailing list