Make docshell visibility checking check with the tree owner so that embedding
gets a chance to claim docshells as invisible (eg in Camino's tab implementation). Bug 306245, patch by jst, r=sfraser, sr=bzbarsky git-svn-id: svn://10.0.0.236/trunk@182521 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -3757,8 +3757,16 @@ nsDocShell::GetVisibility(PRBool * aVisibility)
|
||||
treeItem->GetParent(getter_AddRefs(parentItem));
|
||||
}
|
||||
|
||||
*aVisibility = PR_TRUE;
|
||||
return NS_OK;
|
||||
nsCOMPtr<nsIBaseWindow>
|
||||
treeOwnerAsWin(do_QueryInterface(mTreeOwner));
|
||||
if (!treeOwnerAsWin) {
|
||||
*aVisibility = PR_TRUE;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
// Check with the tree owner as well to give embedders a chance to
|
||||
// expose visibility as well.
|
||||
return treeOwnerAsWin->GetVisibility(aVisibility);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
||||
Reference in New Issue
Block a user