Skip to content
Snippets Groups Projects
Commit 2a2f53fa authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame :jack_o_lantern:
Browse files

fixup! Bug 42528: Don't leak system scrollbar size on windows.

Fix the RFPTarget.
parent b1bfcf32
No related branches found
No related tags found
1 merge request!1049Bug 42616 (part 2): Rebased onto Firefox 128.0esr release
......@@ -167,7 +167,7 @@ void ScrollbarDrawingWin::RecomputeScrollbarParams() {
// Do not leak system size when using ResistFingerprinting.
if (!nsContentUtils::ShouldResistFingerprinting("No context available",
RFPTarget::Unknown) &&
RFPTarget::CSSResolution) &&
StaticPrefs::widget_non_native_theme_win_scrollbar_use_system_size()) {
ConfigureScrollbarSize(LookAndFeel::GetInt(
LookAndFeel::IntID::SystemScrollbarSize, defaultSize));
......
......@@ -354,7 +354,7 @@ bool ScrollbarDrawingWin11::PaintScrollbarThumb(
void ScrollbarDrawingWin11::RecomputeScrollbarParams() {
ScrollbarDrawingWin::RecomputeScrollbarParams();
if (nsContentUtils::ShouldResistFingerprinting("No context available",
RFPTarget::Unknown)) {
RFPTarget::CSSResolution)) {
// Do not distinguish sizes between windows 10 and 11.
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment