mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 23:23:33 +00:00
Fix for bug 4001, crashing immediately or on exit after tabbing to end of doc. A: chofmann.
This commit is contained in:
parent
4953a3a830
commit
56f3dc11a6
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user