Loading toolkit/components/resistfingerprinting/RFPHelper.jsm +7 −3 Original line number Diff line number Diff line Loading @@ -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) { Loading Loading @@ -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)); Loading Loading @@ -397,8 +399,10 @@ class _RFPHelper { kPrefLetterboxing, false ); if (this.rfpEnabled) { forEachWindow(win => this._updateSizeForTabsInWindow(win)); } } // The function to parse the dimension set from the pref value. The pref value // should be formated as 'width1xheight1, width2xheight2, ...'. For Loading Loading
toolkit/components/resistfingerprinting/RFPHelper.jsm +7 −3 Original line number Diff line number Diff line Loading @@ -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) { Loading Loading @@ -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)); Loading Loading @@ -397,8 +399,10 @@ class _RFPHelper { kPrefLetterboxing, false ); if (this.rfpEnabled) { forEachWindow(win => this._updateSizeForTabsInWindow(win)); } } // The function to parse the dimension set from the pref value. The pref value // should be formated as 'width1xheight1, width2xheight2, ...'. For Loading