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
138b275e
Verified
Commit
138b275e
authored
May 15, 2024
by
Pier Angelo Vendrame
Browse files
Options
Downloads
Patches
Plain Diff
fixup! Bug 42562: Normalized the Accepted Languages on Android.
Bug 42582: Use toLanguageTag() instead of toString()
parent
8c79dbdd
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!1037
Bug 42614: Rebased onto 115.12
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoRuntimeSettings.java
+1
-1
1 addition, 1 deletion
...main/java/org/mozilla/geckoview/GeckoRuntimeSettings.java
with
1 addition
and
1 deletion
mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoRuntimeSettings.java
+
1
−
1
View file @
138b275e
...
...
@@ -830,7 +830,7 @@ public final class GeckoRuntimeSettings extends RuntimeSettings {
}
}
}
String
acceptLanguages
=
locale
!=
null
?
locale
.
to
Strin
g
().
replace
(
'_'
,
'-'
)
:
"en-US"
;
String
acceptLanguages
=
locale
!=
null
?
locale
.
to
LanguageTa
g
().
replace
(
'_'
,
'-'
)
:
"en-US"
;
if
(
acceptLanguages
.
equals
(
"en-US"
))
{
// For consistency with spoof English.
acceptLanguages
+=
", en"
;
...
...
...
...
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