Bug 1318583: Part 1 - Ignore fixed-width panel browser resizes that happened prior to reparenting. r=aswan
authorKris Maglione <maglione.k@gmail.com>
Tue, 29 Nov 2016 16:50:44 -0800
changeset 324772 53a2e609bc8941ee98f679f1576e30e207b53d2b
parent 324771 a8617a600ec49fc5c41335ac978ea831fc85eff9
child 324773 8db368bd5ecbc1159e4a4675f5c368f56a090df3
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +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;