Skip to content
Snippets Groups Projects
Verified Commit c3ee5d2d authored by ma1's avatar ma1 Committed by Pier Angelo Vendrame
Browse files

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

parent 3d7fe87d
Branches
No related tags found
1 merge request!641Bug 41759: Rebase Base Browser to 115 Nightly
......@@ -46,7 +46,7 @@ function forEachWindow(callback) {
}
async function windowResizeHandler(aEvent) {
if (RFPHelper.letterboxingEnabled) {
if (RFPHelper.letterboxingEnabled || !RFPHelper.rfpEnabled) {
return;
}
if (Services.prefs.getIntPref(kPrefResizeWarnings) <= 0) {
......@@ -245,7 +245,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));
......@@ -392,8 +394,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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment