From 651bf81f3611a4634b72401170174c56d6e32dd2 Mon Sep 17 00:00:00 2001 From: Wes Johnston Date: Tue, 31 Jan 2012 09:48:54 -0800 Subject: [PATCH] Bug 722627 - Send window with touch event listener notification. r=smaug --- dom/base/nsGlobalWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dom/base/nsGlobalWindow.cpp b/dom/base/nsGlobalWindow.cpp index b91d304c264..3bbb99d57d1 100644 --- a/dom/base/nsGlobalWindow.cpp +++ b/dom/base/nsGlobalWindow.cpp @@ -7680,9 +7680,9 @@ void nsGlobalWindow::UpdateTouchState() nsCOMPtr observerService = do_GetService(NS_OBSERVERSERVICE_CONTRACTID); + if (observerService) { - nsPIDOMWindow *inner = GetCurrentInnerWindowInternal(); - observerService->NotifyObservers(mainWidget, + observerService->NotifyObservers(static_cast(this), DOM_TOUCH_LISTENER_ADDED, nsnull); }