mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
Bug 398907: Firefox saves wrong window restore size while closing a maximized window. r=mano, a=blocking-firefox3+
This commit is contained in:
parent
3ab487bc0a
commit
03cf1c5a29
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user