call embeddingwindow->SetFocus from Focus(). bug 57841 r=hyatt,saari

This commit is contained in:
danm%netscape.com 2002-01-16 00:11:51 +00:00
parent 72db156f1f
commit ac457890e3

View File

@ -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) {