Bug 1318583: Part 1 - Ignore fixed-width panel browser resizes that happened prior to reparenting. r?aswan draft
authorKris Maglione <maglione.k@gmail.com>
Tue, 29 Nov 2016 16:50:44 -0800
changeset 445576 a8ba0d1b8d2c512a78f81846139d42cd3b66bd30
parent 444110 5b45f7938182ea8bf814ab0bb6373bcf803755b5
child 445577 d104fbc6aef4a0b15c2bd155e0d649656407e633
push id37567
push usermaglione.k@gmail.com
push dateWed, 30 Nov 2016 01:09:16 +0000
reviewersaswan
bugs1318583
milestone53.0a1
Bug 1318583: Part 1 - Ignore fixed-width panel browser resizes that happened prior to reparenting. r?aswan MozReview-Commit-ID: 1oFbtM6Khw7
browser/components/extensions/ext-utils.js
--- a/browser/components/extensions/ext-utils.js
+++ b/browser/components/extensions/ext-utils.js
@@ -483,21 +483,22 @@ class ViewPopup extends BasePopup {
         bottom: Math.max(0, screenBottom - popupBottom),
         top:  Math.max(0, popupTop - win.screen.availTop),
       };
 
       // Create a new browser in the real popup.
       let browser = this.browser;
       yield this.createBrowser(this.viewNode);
 
+      this.ignoreResizes = false;
+
       this.browser.swapDocShells(browser);
       this.destroyBrowser(browser);
 
-      this.ignoreResizes = false;
-      if (this.dimensions) {
+      if (this.dimensions && !this.fixedWidth) {
         this.resizeBrowser(this.dimensions);
       }
 
       this.tempPanel.remove();
       this.tempPanel = null;
 
       this.shown = true;