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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user