Use the right view observer for events. Fixes some crashes. Bug 279205, r+sr=roc

This commit is contained in:
bzbarsky%mit.edu 2005-01-23 20:55:53 +00:00
Родитель 60edd91b09
Коммит cd964f3a39
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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);
}