mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 11:26:09 +00:00
Don't crash if the focus controller is null during a deactivate (bug 168454). r=hewitt, sr=jst.
This commit is contained in:
parent
3ba4db53e3
commit
e3d321d3b9
@ -746,7 +746,8 @@ nsEventStateManager::PreHandleEvent(nsIPresContext* aPresContext,
|
||||
nsCOMPtr<nsIPresShell> shell;
|
||||
|
||||
nsCOMPtr<nsIDOMElement> focusedElement;
|
||||
focusController->GetFocusedElement(getter_AddRefs(focusedElement));
|
||||
if (focusController)
|
||||
focusController->GetFocusedElement(getter_AddRefs(focusedElement));
|
||||
nsCOMPtr<nsIContent> focusedContent = do_QueryInterface(focusedElement);
|
||||
|
||||
gLastFocusedDocument->GetShellAt(0, getter_AddRefs(shell));
|
||||
|
Loading…
Reference in New Issue
Block a user