зеркало из https://github.com/mozilla/gecko-dev.git
Bugzilla Bug 79213 nsEventStateManager::PreHandleEvent dereference a NULL nsCOMPtr with operator->().:
bandage fix. r=saari sr=jst.
This commit is contained in:
Родитель
b86e65c7af
Коммит
7294491c84
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче