mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-09 05:14:24 +00:00
bug 872324 - ensure window position/size attributes are passed to restoreDimensions as numbers, not strings. r=ttaubert
This commit is contained in:
parent
48dc286b26
commit
08a9560178
@ -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);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user