Bug 876244 - Port | Bug 872324 - Restored maximized windows blank or incorrectly positioned | to SeaMonkey. r=IanN
authorPhoenix <pppx@i.com.ua>
Sun, 26 May 2013 15:51:15 +0300
changeset 15675 9dd77be8db55cc89ab4c2ad40f7cfc2ec02a339b
parent 15674 5a2edf97c4425cfab94b71b059708e2d8e16a3e8
child 15676 81898db42ab6db28f137c5ee79b108916303db2a
push id942
push userbugzilla@standard8.plus.com
push dateMon, 05 Aug 2013 19:15:38 +0000
treeherdercomm-beta@0e1a1c4a9f0c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersIanN
bugs876244, 872324
Bug 876244 - Port | Bug 872324 - Restored maximized windows blank or incorrectly positioned | to SeaMonkey. r=IanN
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