From: Mike Hommey Date: Thu, 12 Nov 2009 16:18:31 +0000 (+0100) Subject: Avoid wrong sessionstore data to keep windows out of user sight X-Git-Tag: archive/raspbian/60.4.0esr-1+rpi1~1^2^2~11 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8ac24cc419440ca157019692b8b3603352342f35;p=firefox-esr.git Avoid wrong sessionstore data to keep windows out of user sight 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 --- diff --git a/browser/components/sessionstore/SessionStore.jsm b/browser/components/sessionstore/SessionStore.jsm index dac28993e76..67e4dabb1c2 100644 --- a/browser/components/sessionstore/SessionStore.jsm +++ b/browser/components/sessionstore/SessionStore.jsm @@ -3195,7 +3195,7 @@ var SessionStoreInternal = { } } if (!isNaN(aLeft) && !isNaN(aTop) && (aLeft != win_("screenX") || aTop != win_("screenY"))) { - aWindow.moveTo(aLeft, aTop); + aWindow.moveTo((aLeft < -aWidth) ? 0 : aLeft, (aTop < -aHeight) ? 0 : aTop); } if (aSizeMode && win_("sizemode") != aSizeMode) { @@ -3205,8 +3205,6 @@ var SessionStoreInternal = { aWindow.maximize(); break; case "minimized": - aWindow.minimize(); - break; case "normal": aWindow.restore(); break;