In the implementation of FindItemWithName, make sure to pass the tree owner the docShell knows about and not another higher level requestor.

This commit is contained in:
tbogard%aol.net 2000-03-28 09:40:14 +00:00
Родитель 085b74f3ee
Коммит 32d9a7b5d0
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -281,8 +281,10 @@ NS_IMETHODIMP nsWebBrowser::FindItemWithName(const PRUnichar *aName,
nsISupports* aRequestor, nsIDocShellTreeItem **_retval)
{
NS_ENSURE_STATE(mDocShell);
NS_ASSERTION(mDocShellTreeOwner, "This should always be set when in this situation");
return mDocShellAsItem->FindItemWithName(aName, aRequestor, _retval);
return mDocShellAsItem->FindItemWithName(aName,
NS_STATIC_CAST(nsIDocShellTreeOwner*, mDocShellTreeOwner), _retval);
}
NS_IMETHODIMP nsWebBrowser::GetTreeOwner(nsIDocShellTreeOwner** aTreeOwner)