зеркало из https://github.com/mozilla/pjs.git
call embeddingwindow->SetFocus from Focus(). bug 57841 r=hyatt,saari
This commit is contained in:
Родитель
81b60f6f86
Коммит
a7d9879296
|
@ -1846,8 +1846,12 @@ NS_IMETHODIMP GlobalWindowImpl::Focus()
|
||||||
{
|
{
|
||||||
nsCOMPtr<nsIBaseWindow> treeOwnerAsWin;
|
nsCOMPtr<nsIBaseWindow> treeOwnerAsWin;
|
||||||
GetTreeOwner(getter_AddRefs(treeOwnerAsWin));
|
GetTreeOwner(getter_AddRefs(treeOwnerAsWin));
|
||||||
if (treeOwnerAsWin)
|
if (treeOwnerAsWin) {
|
||||||
treeOwnerAsWin->SetVisibility(PR_TRUE);
|
treeOwnerAsWin->SetVisibility(PR_TRUE);
|
||||||
|
nsCOMPtr<nsIEmbeddingSiteWindow> embeddingWin(do_GetInterface(treeOwnerAsWin));
|
||||||
|
if (embeddingWin)
|
||||||
|
embeddingWin->SetFocus();
|
||||||
|
}
|
||||||
|
|
||||||
nsCOMPtr<nsIPresShell> presShell;
|
nsCOMPtr<nsIPresShell> presShell;
|
||||||
if (mDocShell) {
|
if (mDocShell) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче