Fixed bug where when the aRequestor was the tree owner of the docShell in a content shell list. It was not advancing checking to see if the list had more.

This commit is contained in:
tbogard@aol.net
2000-01-29 11:15:15 +00:00
parent e70240487b
commit 176a53ed9a
2 changed files with 2 additions and 6 deletions

View File

@@ -102,10 +102,8 @@ NS_IMETHODIMP nsContentTreeOwner::FindItemWithName(const PRUnichar* aName,
nsCOMPtr<nsIDocShellTreeItem> shellAsTreeItem;
xulWindow->GetPrimaryContentShell(getter_AddRefs(shellAsTreeItem));
if(shellAsTreeItem)
if(shellAsTreeItem && (aRequestor != shellAsTreeItem.get()))
{
if(aRequestor == shellAsTreeItem.get())
continue;
// Do this so we can pass in the tree owner as the requestor so the child knows not
// to call back up.
nsCOMPtr<nsIDocShellTreeOwner> shellOwner;