ma1 pushed to branch tor-browser-102.12.0esr-13.0-1 at The Tor Project / Applications / Tor Browser
Commits: a6db7b91 by hackademix at 2023-06-12T10:35:40+02:00 fixup! Bug 32308: use direct browser sizing for letterboxing.
- - - - -
1 changed file:
- toolkit/components/resistfingerprinting/RFPHelper.jsm
Changes:
===================================== toolkit/components/resistfingerprinting/RFPHelper.jsm ===================================== @@ -51,7 +51,7 @@ function forEachWindow(callback) {
async function windowResizeHandler(aEvent) { - if (RFPHelper.letterboxingEnabled) { + if (RFPHelper.letterboxingEnabled || !RFPHelper.rfpEnabled) { return; } if (Services.prefs.getIntPref(kPrefResizeWarnings) <= 0) { @@ -250,7 +250,9 @@ class _RFPHelper { }
_handleResistFingerprintingChanged() { - if (Services.prefs.getBoolPref(kPrefResistFingerprinting)) { + if ( + (this.rfpEnabled = Services.prefs.getBoolPref(kPrefResistFingerprinting)) + ) { this._addRFPObservers(); Services.ww.registerNotification(this); forEachWindow(win => this._attachWindow(win)); @@ -397,7 +399,9 @@ class _RFPHelper { kPrefLetterboxing, false ); - forEachWindow(win => this._updateSizeForTabsInWindow(win)); + if (this.rfpEnabled) { + forEachWindow(win => this._updateSizeForTabsInWindow(win)); + } }
// The function to parse the dimension set from the pref value. The pref value
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/a6db7b91...