mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Use the right view observer for events. Fixes some crashes. Bug 279205, r+sr=roc
This commit is contained in:
parent
3979bd689d
commit
966a36d8df
@ -2425,7 +2425,7 @@ nsEventStatus nsViewManager::HandleEvent(nsView* aView, nsGUIEvent* aEvent, PRBo
|
||||
// Hold a refcount to the observer. The continued existence of the observer will
|
||||
// delay deletion of this view hierarchy should the event want to cause its
|
||||
// destruction in, say, some JavaScript event handler.
|
||||
nsCOMPtr<nsIViewObserver> vobs = GetViewObserver();
|
||||
nsCOMPtr<nsIViewObserver> vobs = vVM->GetViewObserver();
|
||||
if (vobs) {
|
||||
vobs->HandleEvent(v, aEvent, &status, i == targetViews.Count() - 1, handled);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user