Bug 722627 - Send window with touch event listener notification. r=smaug

This commit is contained in:
Wes Johnston 2012-01-31 09:48:54 -08:00
parent 440851ce36
commit 651bf81f36

View File

@ -7680,9 +7680,9 @@ void nsGlobalWindow::UpdateTouchState()
nsCOMPtr<nsIObserverService> observerService = nsCOMPtr<nsIObserverService> observerService =
do_GetService(NS_OBSERVERSERVICE_CONTRACTID); do_GetService(NS_OBSERVERSERVICE_CONTRACTID);
if (observerService) { if (observerService) {
nsPIDOMWindow *inner = GetCurrentInnerWindowInternal(); observerService->NotifyObservers(static_cast<nsIDOMWindow*>(this),
observerService->NotifyObservers(mainWidget,
DOM_TOUCH_LISTENER_ADDED, DOM_TOUCH_LISTENER_ADDED,
nsnull); nsnull);
} }