зеркало из https://github.com/mozilla/gecko-dev.git
Check for null focusedWindow in case of full-page plugins b=304243 r=IanN sr=jag
This commit is contained in:
Родитель
1772bfcdac
Коммит
f3b7088edc
|
@ -86,7 +86,13 @@ function toJavaConsole()
|
|||
|
||||
function toOpenWindow( aWindow )
|
||||
{
|
||||
try {
|
||||
// Try to focus the previously focused window e.g. message compose body
|
||||
aWindow.document.commandDispatcher.focusedWindow.focus();
|
||||
} catch (e) {
|
||||
// e.g. full-page plugin or non-XUL document; just raise the top window
|
||||
aWindow.focus();
|
||||
}
|
||||
}
|
||||
|
||||
function toOpenWindowByType( inType, uri )
|
||||
|
|
Загрузка…
Ссылка в новой задаче