Bug 398907: Firefox saves wrong window restore size while closing a maximized window. r=mano, a=blocking-firefox3+

This commit is contained in:
florian@queze.net 2007-12-14 12:29:41 -08:00
parent e0e0b69e49
commit 3010ab4915

View File

@ -1087,14 +1087,6 @@ function BrowserShutdown()
BrowserOffline.uninit();
// Store current window position/size into the window attributes
// for persistence.
var win = document.documentElement;
win.setAttribute("x", window.screenX);
win.setAttribute("y", window.screenY);
win.setAttribute("height", window.outerHeight);
win.setAttribute("width", window.outerWidth);
var windowManager = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService();
var windowManagerInterface = windowManager.QueryInterface(Components.interfaces.nsIWindowMediator);
var enumerator = windowManagerInterface.getEnumerator(null);