From 55b06b1eb97e88bb4513a6332221afa78605c636 Mon Sep 17 00:00:00 2001 From: Gregor Wagner Date: Wed, 15 Jan 2014 15:07:18 -0800 Subject: [PATCH] Bug 956325 - Don't dispatch cross process event when remote is dead. r=smaug --- dom/ipc/TabParent.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dom/ipc/TabParent.cpp b/dom/ipc/TabParent.cpp index 16dcea38413..e74547a4d15 100644 --- a/dom/ipc/TabParent.cpp +++ b/dom/ipc/TabParent.cpp @@ -803,6 +803,10 @@ bool TabParent::SendRealTouchEvent(WidgetTouchEvent& event) ScrollableLayerGuid guid; MaybeForwardEventToRenderFrame(event, &guid, &e); + if (mIsDestroyed) { + return false; + } + MapEventCoordinatesForChildProcess(mChildProcessOffsetAtTouchStart, &e); return (e.message == NS_TOUCH_MOVE) ?