bug 872324 - ensure window position/size attributes are passed to restoreDimensions as numbers, not strings. r=ttaubert

This commit is contained in:
Jonathan Kew 2013-05-22 11:02:38 +08:00
parent d9592e088d
commit 99a6af2d1d

View File

@ -3517,9 +3517,11 @@ let SessionStoreInternal = {
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);
},