mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 04:45:45 +00:00
Prevent a crash that happens if you context-click while autocomplete is active in mail compose (bug 137864). r=danm, sr=jag.
This commit is contained in:
parent
28a8310598
commit
f711b863c8
@ -1124,8 +1124,13 @@ nsEventStateManager :: FireContextClick ( )
|
||||
// dispatch to DOM
|
||||
lastContent->HandleDOMEvent(mEventPresContext, &event, nsnull, NS_EVENT_FLAG_INIT, &status);
|
||||
|
||||
// dispatch to the frame
|
||||
mGestureDownFrame->HandleEvent(mEventPresContext, &event, &status);
|
||||
// Firing the DOM event could have caused mGestureDownFrame to
|
||||
// be destroyed. So, null-check it again.
|
||||
|
||||
if (mGestureDownFrame) {
|
||||
// dispatch to the frame
|
||||
mGestureDownFrame->HandleEvent(mEventPresContext, &event, &status);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user