Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor Browser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Applications
Tor Browser
Commits
5c166a10
Commit
5c166a10
authored
May 16, 2024
by
henry
Committed by
Beatriz Rizental
3 months ago
Browse files
Options
Downloads
Patches
Plain Diff
TB 42583: Modify moz-support-link for Tor Browser.
parent
e9040447
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!1527
Bug 43808: Rebase 128.10.1 onto 128.11
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
toolkit/content/widgets/moz-support-link/moz-support-link.mjs
+14
-13
14 additions, 13 deletions
...kit/content/widgets/moz-support-link/moz-support-link.mjs
with
14 additions
and
13 deletions
toolkit/content/widgets/moz-support-link/moz-support-link.mjs
+
14
−
13
View file @
5c166a10
...
...
@@ -118,22 +118,23 @@ export default class MozSupportLink extends HTMLAnchorElement {
#setHref
()
{
let
torManualPage
=
this
.
getAttribute
(
"
tor-manual-page
"
);
if
(
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
;
this
.
href
=
`about:manual#
${
torManualPage
}
`
;
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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment