Bug 124946. F6 and Ctrl+tab no longer correctly cycles through frames. r=bryner, r=rjesup, sr=hewitt, a=asa

git-svn-id: svn://10.0.0.236/trunk@117595 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
aaronl%netscape.com
2002-03-27 04:43:52 +00:00
parent 373f04430a
commit 70908d27df

View File

@@ -4753,14 +4753,14 @@ nsEventStateManager::GetNextDocShell(nsIDocShellTreeNode* aNode,
NS_ASSERTION(aResult, "null out pointer");
PRInt32 numChildren = 0;
*aResult = nsnull;
aNode->GetChildCount(&numChildren);
if (numChildren == 0) {
*aResult = nsnull;
return;
if (numChildren) {
aNode->GetChildAt(0, aResult);
if (*aResult)
return;
}
aNode->GetChildAt(0, aResult);
if (*aResult)
return;
nsCOMPtr<nsIDocShellTreeNode> curNode = aNode;
while (curNode) {