mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 872324 - ensure window position/size attributes are passed to restoreDimensions as numbers, not strings. r=ttaubert
This commit is contained in:
parent
d9592e088d
commit
99a6af2d1d
@ -3517,9 +3517,11 @@ let SessionStoreInternal = {
|
|||||||
|
|
||||||
var _this = this;
|
var _this = this;
|
||||||
aWindow.setTimeout(function() {
|
aWindow.setTimeout(function() {
|
||||||
_this.restoreDimensions.apply(_this, [aWindow, aWinData.width || 0,
|
_this.restoreDimensions.apply(_this, [aWindow,
|
||||||
aWinData.height || 0, "screenX" in aWinData ? aWinData.screenX : NaN,
|
+aWinData.width || 0,
|
||||||
"screenY" in aWinData ? aWinData.screenY : NaN,
|
+aWinData.height || 0,
|
||||||
|
"screenX" in aWinData ? +aWinData.screenX : NaN,
|
||||||
|
"screenY" in aWinData ? +aWinData.screenY : NaN,
|
||||||
aWinData.sizemode || "", aWinData.sidebar || ""]);
|
aWinData.sizemode || "", aWinData.sidebar || ""]);
|
||||||
}, 0);
|
}, 0);
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user