Pier Angelo Vendrame pushed to branch mullvad-browser-115.10.0esr-13.5-1 at The Tor Project / Applications / Mullvad Browser
Commits:
1908311e by Henry Wilkes at 2024-04-17T18:10:56+02:00
Bug 42528: Don't leak system scrollbar size on windows.
- - - - -
2 changed files:
- widget/ScrollbarDrawingWin.cpp
- widget/ScrollbarDrawingWin11.cpp
Changes:
=====================================
widget/ScrollbarDrawingWin.cpp
=====================================
@@ -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::Unknown) &&
+ StaticPrefs::widget_non_native_theme_win_scrollbar_use_system_size()) {
ConfigureScrollbarSize(LookAndFeel::GetInt(
LookAndFeel::IntID::SystemScrollbarSize, defaultSize));
}
=====================================
widget/ScrollbarDrawingWin11.cpp
=====================================
@@ -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::Unknown)) {
+ // 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.
View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/190…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/190…
You're receiving this email because of your account on gitlab.torproject.org.
Pier Angelo Vendrame pushed to branch base-browser-115.10.0esr-13.5-1 at The Tor Project / Applications / Tor Browser
Commits:
39b29d69 by Henry Wilkes at 2024-04-17T18:10:24+02:00
Bug 42528: Don't leak system scrollbar size on windows.
- - - - -
2 changed files:
- widget/ScrollbarDrawingWin.cpp
- widget/ScrollbarDrawingWin11.cpp
Changes:
=====================================
widget/ScrollbarDrawingWin.cpp
=====================================
@@ -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::Unknown) &&
+ StaticPrefs::widget_non_native_theme_win_scrollbar_use_system_size()) {
ConfigureScrollbarSize(LookAndFeel::GetInt(
LookAndFeel::IntID::SystemScrollbarSize, defaultSize));
}
=====================================
widget/ScrollbarDrawingWin11.cpp
=====================================
@@ -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::Unknown)) {
+ // 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.
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/39b29d6…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/39b29d6…
You're receiving this email because of your account on gitlab.torproject.org.
Pier Angelo Vendrame pushed to branch tor-browser-115.10.0esr-13.5-1 at The Tor Project / Applications / Tor Browser
Commits:
9b68a413 by Henry Wilkes at 2024-04-17T16:09:08+00:00
Bug 42528: Don't leak system scrollbar size on windows.
- - - - -
2 changed files:
- widget/ScrollbarDrawingWin.cpp
- widget/ScrollbarDrawingWin11.cpp
Changes:
=====================================
widget/ScrollbarDrawingWin.cpp
=====================================
@@ -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::Unknown) &&
+ StaticPrefs::widget_non_native_theme_win_scrollbar_use_system_size()) {
ConfigureScrollbarSize(LookAndFeel::GetInt(
LookAndFeel::IntID::SystemScrollbarSize, defaultSize));
}
=====================================
widget/ScrollbarDrawingWin11.cpp
=====================================
@@ -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::Unknown)) {
+ // 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.
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/9b68a41…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/9b68a41…
You're receiving this email because of your account on gitlab.torproject.org.
Pier Angelo Vendrame pushed to branch base-browser-115.10.0esr-13.5-1 at The Tor Project / Applications / Tor Browser
Commits:
168e038e by Henry Wilkes at 2024-04-17T16:52:24+02:00
Bug 41966: Allow removing locales from the locale alternatives list.
- - - - -
1 changed file:
- browser/components/preferences/dialogs/browserLanguages.js
Changes:
=====================================
browser/components/preferences/dialogs/browserLanguages.js
=====================================
@@ -349,7 +349,7 @@ async function getLocaleDisplayInfo(localeCodes) {
id: "locale-" + code,
label: localeNames[i],
value: code,
- canRemove: !packagedLocales.has(code),
+ canRemove: code !== Services.locale.defaultLocale,
installed: availableLocales.has(code),
};
});
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/168e038…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/168e038…
You're receiving this email because of your account on gitlab.torproject.org.
Pier Angelo Vendrame pushed to branch tor-browser-115.10.0esr-13.5-1 at The Tor Project / Applications / Tor Browser
Commits:
5be723a9 by Henry Wilkes at 2024-04-17T15:37:09+01:00
Bug 41966: Allow removing locales from the locale alternatives list.
- - - - -
1 changed file:
- browser/components/preferences/dialogs/browserLanguages.js
Changes:
=====================================
browser/components/preferences/dialogs/browserLanguages.js
=====================================
@@ -349,7 +349,7 @@ async function getLocaleDisplayInfo(localeCodes) {
id: "locale-" + code,
label: localeNames[i],
value: code,
- canRemove: !packagedLocales.has(code),
+ canRemove: code !== Services.locale.defaultLocale,
installed: availableLocales.has(code),
};
});
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/5be723a…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/5be723a…
You're receiving this email because of your account on gitlab.torproject.org.
Pier Angelo Vendrame pushed to branch maint-13.0 at The Tor Project / Applications / tor-browser-build
Commits:
24cb8294 by Pier Angelo Vendrame at 2024-04-17T14:41:09+02:00
Bug 41128: Fix spaces in various config files.
Some files contain more spaces than needed.
After fixing them, we can update these files with ruamel.yaml if
needed.
- - - - -
30 changed files:
- projects/glean/config
- projects/goansicolor/config
- projects/gobtcd/config
- projects/gobtclog/config
- projects/gobtcutil/config
- projects/gobuildinfo/config
- projects/goconfigurable/config
- projects/godegoutils/config
- projects/godexlogconfig/config
- projects/godns/config
- projects/goeasyconfig/config
- projects/gogroupcache/config
- projects/goisatty/config
- projects/gokingpin/config
- projects/gomadns/config
- projects/goncbtcjson/config
- projects/goncrpcclient/config
- projects/gopflag/config
- projects/gopretty/config
- projects/goservice/config
- projects/gosocks/config
- projects/gosvcutils/config
- projects/gosystemd/config
- projects/gotemplate/config
- projects/gotext/config
- projects/gotoml/config
- projects/gounits/config
- projects/gowebsocket/config
- projects/goxlog/config
- projects/gspt/config
The diff was not included because it is too large.
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/2…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/2…
You're receiving this email because of your account on gitlab.torproject.org.
Pier Angelo Vendrame pushed to branch main at The Tor Project / Applications / tor-browser-build
Commits:
f8cb6710 by Pier Angelo Vendrame at 2024-04-17T11:26:53+02:00
Bug 41128: Fix spaces in various config files.
Some files contain more spaces than needed.
After fixing them, we can update these files with ruamel.yaml if
needed.
- - - - -
30 changed files:
- projects/glean/config
- projects/goansicolor/config
- projects/gobtcd/config
- projects/gobtclog/config
- projects/gobtcutil/config
- projects/gobuildinfo/config
- projects/goconfigurable/config
- projects/godegoutils/config
- projects/godexlogconfig/config
- projects/godns/config
- projects/goeasyconfig/config
- projects/gogroupcache/config
- projects/goisatty/config
- projects/gokingpin/config
- projects/gomadns/config
- projects/goncbtcjson/config
- projects/goncrpcclient/config
- projects/gopflag/config
- projects/gopretty/config
- projects/goservice/config
- projects/gosocks/config
- projects/gosvcutils/config
- projects/gosystemd/config
- projects/gotemplate/config
- projects/gotext/config
- projects/gotoml/config
- projects/gounits/config
- projects/gowebsocket/config
- projects/goxlog/config
- projects/gspt/config
The diff was not included because it is too large.
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/f…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/f…
You're receiving this email because of your account on gitlab.torproject.org.