In the implementation of FindItemWithName, make sure to pass the tree owner the docShell knows about and not another higher level requestor.
git-svn-id: svn://10.0.0.236/trunk@64352 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user