зеркало из https://github.com/mozilla/pjs.git
Bug 394198. Crash in nsDocAccessible::TakeFocus(). Patch by Evan Yan, r=aaronlev, a=dsicore. Leaving open for a better fix
This commit is contained in:
Родитель
b0c2a97bd8
Коммит
1fb6eba104
|
@ -284,6 +284,10 @@ NS_IMETHODIMP nsDocAccessible::TakeFocus()
|
|||
NS_ENSURE_TRUE(docShell, NS_ERROR_FAILURE);
|
||||
|
||||
nsCOMPtr<nsIPresShell> shell(GetPresShell());
|
||||
if (!shell) {
|
||||
NS_WARNING("Was not shutdown properly via InvalidateCacheSubtree()");
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
nsIEventStateManager *esm = shell->GetPresContext()->EventStateManager();
|
||||
NS_ENSURE_TRUE(esm, NS_ERROR_FAILURE);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче