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
a2cbd583
Verified
Commit
a2cbd583
authored
Dec 12, 2023
by
henry
Committed by
Pier Angelo Vendrame
8 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Bug 42528: Don't leak system scrollbar size on windows.
parent
9c2f369d
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!1293
Bug 43306: Rebased stable onto 128.5.0esr
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
widget/ScrollbarDrawingWin.cpp
+5
-1
5 additions, 1 deletion
widget/ScrollbarDrawingWin.cpp
widget/ScrollbarDrawingWin11.cpp
+6
-0
6 additions, 0 deletions
widget/ScrollbarDrawingWin11.cpp
with
11 additions
and
1 deletion
widget/ScrollbarDrawingWin.cpp
+
5
−
1
View file @
a2cbd583
...
...
@@ -11,6 +11,7 @@
#include
"nsLayoutUtils.h"
#include
"Theme.h"
#include
"nsNativeTheme.h"
#include
"nsContentUtils.h"
namespace
mozilla
::
widget
{
...
...
@@ -164,7 +165,10 @@ void ScrollbarDrawingWin::RecomputeScrollbarParams() {
}
ConfigureScrollbarSize
(
defaultSize
);
if
(
StaticPrefs
::
widget_non_native_theme_win_scrollbar_use_system_size
())
{
// Do not leak system size when using ResistFingerprinting.
if
(
!
nsContentUtils
::
ShouldResistFingerprinting
(
"No context available"
,
RFPTarget
::
CSSResolution
)
&&
StaticPrefs
::
widget_non_native_theme_win_scrollbar_use_system_size
())
{
ConfigureScrollbarSize
(
LookAndFeel
::
GetInt
(
LookAndFeel
::
IntID
::
SystemScrollbarSize
,
defaultSize
));
}
...
...
This diff is collapsed.
Click to expand it.
widget/ScrollbarDrawingWin11.cpp
+
6
−
0
View file @
a2cbd583
...
...
@@ -11,6 +11,7 @@
#include
"nsLayoutUtils.h"
#include
"Theme.h"
#include
"nsNativeTheme.h"
#include
"nsContentUtils.h"
using
mozilla
::
gfx
::
sRGBColor
;
...
...
@@ -352,6 +353,11 @@ bool ScrollbarDrawingWin11::PaintScrollbarThumb(
void
ScrollbarDrawingWin11
::
RecomputeScrollbarParams
()
{
ScrollbarDrawingWin
::
RecomputeScrollbarParams
();
if
(
nsContentUtils
::
ShouldResistFingerprinting
(
"No context available"
,
RFPTarget
::
CSSResolution
))
{
// Do not distinguish sizes between windows 10 and 11.
return
;
}
// TODO(emilio): Maybe make this configurable? Though this doesn't respect
// classic Windows registry settings, and cocoa overlay scrollbars also don't
// respect the override it seems, so this should be fine.
...
...
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
register
or
sign in
to comment