richard pushed to branch base-browser-115.10.0esr-13.5-1 at The Tor Project / Applications / Tor Browser
Commits:
-
bd81091e
by hackademix at 2024-04-17T20:15:09+00:00
2 changed files:
Changes:
... | ... | @@ -1600,6 +1600,13 @@ BrowserGlue.prototype = { |
1600 | 1600 | return;
|
1601 | 1601 | }
|
1602 | 1602 | |
1603 | + // We don't want to mess up with RFP new window / letterboxing machinery.
|
|
1604 | + if (
|
|
1605 | + Services.prefs.getBoolPref("privacy.resistFingerprinting", false)
|
|
1606 | + ) {
|
|
1607 | + return;
|
|
1608 | + }
|
|
1609 | + |
|
1603 | 1610 | let store = Services.xulStore;
|
1604 | 1611 | let getValue = attr =>
|
1605 | 1612 | store.getValue(AppConstants.BROWSER_CHROME_URL, "main-window", attr);
|
... | ... | @@ -287,6 +287,7 @@ static const char kPrefThemeId[] = "extensions.activeThemeID"; |
287 | 287 | static const char kPrefBrowserStartupBlankWindow[] =
|
288 | 288 | "browser.startup.blankWindow";
|
289 | 289 | static const char kPrefPreXulSkeletonUI[] = "browser.startup.preXulSkeletonUI";
|
290 | +static const char kPrefResistFingerprinting[] = "privacy.resistFingerprinting";
|
|
290 | 291 | #endif // defined(XP_WIN)
|
291 | 292 | |
292 | 293 | #if defined(MOZ_WIDGET_GTK)
|
... | ... | @@ -2260,6 +2261,7 @@ static void ReflectSkeletonUIPrefToRegistry(const char* aPref, void* aData) { |
2260 | 2261 | bool shouldBeEnabled =
|
2261 | 2262 | Preferences::GetBool(kPrefPreXulSkeletonUI, false) &&
|
2262 | 2263 | Preferences::GetBool(kPrefBrowserStartupBlankWindow, false) &&
|
2264 | + !Preferences::GetBool(kPrefResistFingerprinting, false) &&
|
|
2263 | 2265 | LookAndFeel::DrawInTitlebar();
|
2264 | 2266 | if (shouldBeEnabled && Preferences::HasUserValue(kPrefThemeId)) {
|
2265 | 2267 | nsCString themeId;
|