Verified Commit a6db7b91 authored by ma1's avatar ma1
Browse files

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

parent 5db35e85
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -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,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