mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 510221 - Restore minimized window when clicking the Dock icon. r=gavin
This commit is contained in:
parent
b4156da98f
commit
869dba9603
@ -55,6 +55,9 @@ function checkFocusedWindow()
|
||||
|
||||
function toOpenWindow( aWindow )
|
||||
{
|
||||
// deminiaturize the window, if it's in the Dock
|
||||
if (aWindow.windowState == STATE_MINIMIZED)
|
||||
aWindow.restore();
|
||||
aWindow.document.commandDispatcher.focusedWindow.focus();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user