зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
7394b841c6
Коммит
7b4b1b4d1e
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче