mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Fix for bug 82569, a simple null check to patch over a crash some people are seeing from talkback.
r=blake, sr=jst
This commit is contained in:
parent
e50ac3d520
commit
4ded5c390d
@ -132,7 +132,8 @@ nsFocusController::UpdateCommands(const nsAReadableString& aEventName)
|
||||
doc->GetScriptGlobalObject(getter_AddRefs(global));
|
||||
|
||||
nsCOMPtr<nsIDOMWindowInternal> window(do_QueryInterface(global));
|
||||
window->UpdateCommands(aEventName);
|
||||
if (window)
|
||||
window->UpdateCommands(aEventName);
|
||||
}
|
||||
}
|
||||
return NS_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user