Bug 463964 - "Session restore should restore minimized state" [r=dietrich]

This commit is contained in:
Simon Bünzli 2008-12-14 22:58:48 -08:00
parent 02542172e9
commit 579036a8f5

View File

@ -2122,11 +2122,20 @@ SessionStoreService.prototype = {
if (!isNaN(aLeft) && !isNaN(aTop) && (aLeft != win_("screenX") || aTop != win_("screenY"))) {
aWindow.moveTo(aLeft, aTop);
}
if (aSizeMode == "maximized" && win_("sizemode") != "maximized") {
switch (aSizeMode)
{
case "maximized":
if (win_("sizemode") != "maximized")
aWindow.maximize();
}
else if (aSizeMode && aSizeMode != "maximized" && win_("sizemode") != "normal") {
break
case "minimized":
if (win_("sizemode") != "minimized")
aWindow.minimize();
break
default:
if (win_("sizemode") != "normal")
aWindow.restore();
break
}
var sidebar = aWindow.document.getElementById("sidebar-box");
if (sidebar.getAttribute("sidebarcommand") != aSidebar) {