richard pushed to branch tor-browser-115.10.0esr-13.5-1 at The Tor Project / Applications / Tor Browser
Commits:
-
3cabcf78
by hackademix at 2024-04-17T20:05:27+00:00
2 changed files:
Changes:
... | ... | @@ -1685,6 +1685,13 @@ BrowserGlue.prototype = { |
1685 | 1685 | return;
|
1686 | 1686 | }
|
1687 | 1687 | |
1688 | + // We don't want to mess up with RFP new window / letterboxing machinery.
|
|
1689 | + if (
|
|
1690 | + Services.prefs.getBoolPref("privacy.resistFingerprinting", false)
|
|
1691 | + ) {
|
|
1692 | + return;
|
|
1693 | + }
|
|
1694 | + |
|
1688 | 1695 | let store = Services.xulStore;
|
1689 | 1696 | let getValue = attr =>
|
1690 | 1697 | 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)
|
... | ... | @@ -2262,6 +2263,7 @@ static void ReflectSkeletonUIPrefToRegistry(const char* aPref, void* aData) { |
2262 | 2263 | bool shouldBeEnabled =
|
2263 | 2264 | Preferences::GetBool(kPrefPreXulSkeletonUI, false) &&
|
2264 | 2265 | Preferences::GetBool(kPrefBrowserStartupBlankWindow, false) &&
|
2266 | + !Preferences::GetBool(kPrefResistFingerprinting, false) &&
|
|
2265 | 2267 | LookAndFeel::DrawInTitlebar();
|
2266 | 2268 | if (shouldBeEnabled && Preferences::HasUserValue(kPrefThemeId)) {
|
2267 | 2269 | nsCString themeId;
|