зеркало из https://github.com/mozilla/pjs.git
Bugzilla Bug 79213 nsEventStateManager::PreHandleEvent dereference a NULL nsCOMPtr with operator->().:
bandage fix. r=saari sr=jst.
This commit is contained in:
Родитель
b2542db1a5
Коммит
f0460292c9
|
@ -480,6 +480,8 @@ nsEventStateManager::PreHandleEvent(nsIPresContext* aPresContext,
|
|||
nsCOMPtr<nsIScriptGlobalObject> globalObj;
|
||||
mDocument->GetScriptGlobalObject(getter_AddRefs(globalObj));
|
||||
nsCOMPtr<nsPIDOMWindow> win(do_QueryInterface(globalObj));
|
||||
NS_ASSERTION(win, "win is null. this happens [often on xlib builds]. see bug #79213");
|
||||
if (!win) return NS_ERROR_NULL_POINTER;
|
||||
win->GetRootFocusController(getter_AddRefs(focusController));
|
||||
|
||||
if (focusController) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче