mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
call embeddingwindow->SetFocus from Focus(). bug 57841 r=hyatt,saari
This commit is contained in:
parent
72db156f1f
commit
ac457890e3
@ -1846,8 +1846,12 @@ NS_IMETHODIMP GlobalWindowImpl::Focus()
|
||||
{
|
||||
nsCOMPtr<nsIBaseWindow> treeOwnerAsWin;
|
||||
GetTreeOwner(getter_AddRefs(treeOwnerAsWin));
|
||||
if (treeOwnerAsWin)
|
||||
if (treeOwnerAsWin) {
|
||||
treeOwnerAsWin->SetVisibility(PR_TRUE);
|
||||
nsCOMPtr<nsIEmbeddingSiteWindow> embeddingWin(do_GetInterface(treeOwnerAsWin));
|
||||
if (embeddingWin)
|
||||
embeddingWin->SetFocus();
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIPresShell> presShell;
|
||||
if (mDocShell) {
|
||||
|
Loading…
Reference in New Issue
Block a user