зеркало из https://github.com/mozilla/pjs.git
Use the right view observer for events. Fixes some crashes. Bug 279205, r+sr=roc
This commit is contained in:
Родитель
60edd91b09
Коммит
cd964f3a39
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче