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
ec7ec65c
Verified
Commit
ec7ec65c
authored
11 months ago
by
Fatih
Committed by
Pier Angelo Vendrame
9 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Bug 1922204: fixup square spoofed orientation. r=tjr
Differential Revision:
https://phabricator.services.mozilla.com/D224312
parent
60c9accc
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!1293
Bug 43306: Rebased stable onto 128.5.0esr
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
toolkit/components/resistfingerprinting/nsRFPService.cpp
+4
-2
4 additions, 2 deletions
toolkit/components/resistfingerprinting/nsRFPService.cpp
with
4 additions
and
2 deletions
toolkit/components/resistfingerprinting/nsRFPService.cpp
+
4
−
2
View file @
ec7ec65c
...
...
@@ -2282,10 +2282,12 @@ Maybe<RFPTarget> nsRFPService::GetOverriddenFingerprintingSettingsForURI(
/* static */
uint16_t
nsRFPService
::
ViewportSizeToAngle
(
int32_t
aWidth
,
int32_t
aHeight
)
{
// Note that, if screen is square, we return portrait-primary.
// That's why we use > on non-android and >= on Android.
#ifdef MOZ_WIDGET_ANDROID
bool
neutral
=
aHeight
>=
aWidth
;
#else
bool
neutral
=
aWidth
>
=
aHeight
;
bool
neutral
=
aWidth
>
aHeight
;
#endif
if
(
neutral
)
{
return
0
;
...
...
@@ -2296,7 +2298,7 @@ uint16_t nsRFPService::ViewportSizeToAngle(int32_t aWidth, int32_t aHeight) {
/* static */
dom
::
OrientationType
nsRFPService
::
ViewportSizeToOrientationType
(
int32_t
aWidth
,
int32_t
aHeight
)
{
if
(
aWidth
>
=
aHeight
)
{
if
(
aWidth
>
aHeight
)
{
return
dom
::
OrientationType
::
Landscape_primary
;
}
return
dom
::
OrientationType
::
Portrait_primary
;
...
...
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