Skip to content
Snippets Groups Projects
Verified Commit a6db7b91 authored by ma1's avatar ma1
Browse files

fixup! Bug 32308: use direct browser sizing for letterboxing.

parent 5db35e85
No related branches found
No related tags found
No related merge requests found
...@@ -51,7 +51,7 @@ function forEachWindow(callback) { ...@@ -51,7 +51,7 @@ function forEachWindow(callback) {
async function windowResizeHandler(aEvent) { async function windowResizeHandler(aEvent) {
if (RFPHelper.letterboxingEnabled) { if (RFPHelper.letterboxingEnabled || !RFPHelper.rfpEnabled) {
return; return;
} }
if (Services.prefs.getIntPref(kPrefResizeWarnings) <= 0) { if (Services.prefs.getIntPref(kPrefResizeWarnings) <= 0) {
...@@ -250,7 +250,9 @@ class _RFPHelper { ...@@ -250,7 +250,9 @@ class _RFPHelper {
} }
_handleResistFingerprintingChanged() { _handleResistFingerprintingChanged() {
if (Services.prefs.getBoolPref(kPrefResistFingerprinting)) { if (
(this.rfpEnabled = Services.prefs.getBoolPref(kPrefResistFingerprinting))
) {
this._addRFPObservers(); this._addRFPObservers();
Services.ww.registerNotification(this); Services.ww.registerNotification(this);
forEachWindow(win => this._attachWindow(win)); forEachWindow(win => this._attachWindow(win));
...@@ -397,7 +399,9 @@ class _RFPHelper { ...@@ -397,7 +399,9 @@ class _RFPHelper {
kPrefLetterboxing, kPrefLetterboxing,
false 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 // The function to parse the dimension set from the pref value. The pref value
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment