It happens that sessionstore can keep wrong information for the window
position or minimized state. Workaround this until the real bug is found
and fixed (probably in xulrunner).
Closes: #552426, #553453
Gbp-Pq: Topic debian-hacks
Gbp-Pq: Name Avoid-wrong-sessionstore-data-to-keep-windows-out-of.patch
// _getWindowDimension.
let desktopToCssScale =
aWindow.desktopToDeviceScale / aWindow.devicePixelRatio;
- aWindow.moveTo(aLeft * desktopToCssScale, aTop * desktopToCssScale);
+ aWindow.moveTo((aLeft < -aWidth) ? 0 : aLeft * desktopToCssScale, (aTop < -aHeight) ? 0 : aTop * desktopToCssScale);
}
if (
aWidth &&
case "minimized":
if (aSizeModeBeforeMinimized == "maximized") {
aWindow.maximize();
+ break;
}
- aWindow.minimize();
- break;
case "normal":
aWindow.restore();
break;