Bug 876244 - Port | Bug 872324 - Restored maximized windows blank or incorrectly positioned | to SeaMonkey. r=IanN a=Callek BETA_BASE_20130624
authorPhoenix <pppx@i.com.ua>
Sun, 26 May 2013 15:51:15 +0300
changeset 15570 184c3151bdef7efea035b9a7bec2c3a5fb5f5cc7
parent 15569 77ec547b5146cbf2a1787210d10a5c5c9567e437
child 15571 6d2e36f1128fe418f9226d05556c9e31f9389f8b
push id920
push userbugzilla@standard8.plus.com
push dateMon, 24 Jun 2013 19:03:14 +0000
treeherdercomm-beta@936bfe9d120b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersIanN, Callek
bugs876244, 872324
Bug 876244 - Port | Bug 872324 - Restored maximized windows blank or incorrectly positioned | to SeaMonkey. r=IanN a=Callek CLOSED TREE
suite/common/src/nsSessionStore.js
--- a/suite/common/src/nsSessionStore.js
+++ b/suite/common/src/nsSessionStore.js
@@ -3054,19 +3054,21 @@ SessionStoreService.prototype = {
 
     if (aWinData.isPopup)
       this._windows[aWindow.__SSi].isPopup = true;
     else
       delete this._windows[aWindow.__SSi].isPopup;
 
     var _this = this;
     aWindow.setTimeout(function() {
-      _this.restoreDimensions.apply(_this, [aWindow, aWinData.width || 0,
-        aWinData.height || 0, "screenX" in aWinData ? aWinData.screenX : NaN,
-        "screenY" in aWinData ? aWinData.screenY : NaN,
+      _this.restoreDimensions.apply(_this, [aWindow,
+        +aWinData.width || 0,
+        +aWinData.height || 0,
+        "screenX" in aWinData ? +aWinData.screenX : NaN,
+        "screenY" in aWinData ? +aWinData.screenY : NaN,
         aWinData.sizemode || "", aWinData.sidebar || ""]);
     }, 0);
   },
 
   /**
    * Restore a window's dimensions
    * @param aWidth
    *        Window width