Bug 296628. Don't crash when traversal is at the root and we try to go up. r+sr=bzbarsky,a=asa

This commit is contained in:
roc+%cs.cmu.edu 2005-06-17 02:50:15 +00:00
parent 3876d7f8c7
commit 729ee0d1e6

View File

@ -592,8 +592,8 @@ nsFocusIterator::Next()
} else {
parent = result;
result = GetParentFrame(parent);
if (IsRootFrame(result)) {
result = 0;
if (!result || IsRootFrame(result)) {
result = nsnull;
break;
}
}