mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 07:13:20 +00:00
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:
parent
3876d7f8c7
commit
729ee0d1e6
@ -592,8 +592,8 @@ nsFocusIterator::Next()
|
||||
} else {
|
||||
parent = result;
|
||||
result = GetParentFrame(parent);
|
||||
if (IsRootFrame(result)) {
|
||||
result = 0;
|
||||
if (!result || IsRootFrame(result)) {
|
||||
result = nsnull;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user