Fix for bug 4001, crashing immediately or on exit after tabbing to end of doc. A: chofmann.
This commit is contained in:
@@ -1779,7 +1779,6 @@ nsWebShell::FocusAvailable(nsIWebShell* aFocusedWebShell)
|
||||
shell = (nsIWebShell*)mChildren.ElementAt(i);
|
||||
if (shell == aFocusedWebShell) {
|
||||
if (++i < n) {
|
||||
NS_RELEASE(shell);
|
||||
shell = (nsIWebShell*)mChildren.ElementAt(i);
|
||||
shell->SetFocus();
|
||||
break;
|
||||
@@ -1790,7 +1789,6 @@ nsWebShell::FocusAvailable(nsIWebShell* aFocusedWebShell)
|
||||
}
|
||||
}
|
||||
}
|
||||
NS_IF_RELEASE(shell);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user