ma1 pushed to branch tor-browser-102.12.0esr-12.5-1 at The Tor Project / Applications / Tor Browser
Commits:
-
1fac685b
by hackademix at 2023-06-12T09:22:03+02:00
1 changed file:
Changes:
... | ... | @@ -51,7 +51,7 @@ function forEachWindow(callback) { |
51 | 51 | |
52 | 52 | |
53 | 53 | async function windowResizeHandler(aEvent) {
|
54 | - if (RFPHelper.letterboxingEnabled) {
|
|
54 | + if (RFPHelper.letterboxingEnabled || !RFPHelper.rfpEnabled) {
|
|
55 | 55 | return;
|
56 | 56 | }
|
57 | 57 | if (Services.prefs.getIntPref(kPrefResizeWarnings) <= 0) {
|
... | ... | @@ -250,7 +250,9 @@ class _RFPHelper { |
250 | 250 | }
|
251 | 251 | |
252 | 252 | _handleResistFingerprintingChanged() {
|
253 | - if (Services.prefs.getBoolPref(kPrefResistFingerprinting)) {
|
|
253 | + if (
|
|
254 | + (this.rfpEnabled = Services.prefs.getBoolPref(kPrefResistFingerprinting))
|
|
255 | + ) {
|
|
254 | 256 | this._addRFPObservers();
|
255 | 257 | Services.ww.registerNotification(this);
|
256 | 258 | forEachWindow(win => this._attachWindow(win));
|
... | ... | @@ -397,7 +399,9 @@ class _RFPHelper { |
397 | 399 | kPrefLetterboxing,
|
398 | 400 | false
|
399 | 401 | );
|
400 | - forEachWindow(win => this._updateSizeForTabsInWindow(win));
|
|
402 | + if (this.rfpEnabled) {
|
|
403 | + forEachWindow(win => this._updateSizeForTabsInWindow(win));
|
|
404 | + }
|
|
401 | 405 | }
|
402 | 406 | |
403 | 407 | // The function to parse the dimension set from the pref value. The pref value
|