Bug 956325 - Don't dispatch cross process event when remote is dead. r=smaug
authorGregor Wagner <anygregor@gmail.com>
Wed, 15 Jan 2014 15:07:18 -0800
changeset 163676 1737bda111eff4bb029d64fcad83a3ce1d5651cd
parent 163675 2a033b2d14ad155650ef8ad36a990de17c76f366
child 163677 36ad5136b1c1cf3a97ee160fdd89c2a2212dbab7
push id26010
push userryanvm@gmail.com
push dateThu, 16 Jan 2014 20:01:22 +0000
treeherdermozilla-central@1f4f766ea3df [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs956325
milestone29.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 956325 - Don't dispatch cross process event when remote is dead. r=smaug
dom/ipc/TabParent.cpp
--- a/dom/ipc/TabParent.cpp
+++ b/dom/ipc/TabParent.cpp
@@ -798,16 +798,20 @@ bool TabParent::SendRealTouchEvent(Widge
         e.touches.RemoveElementAt(i);
       }
     }
   }
 
   ScrollableLayerGuid guid;
   MaybeForwardEventToRenderFrame(event, &guid, &e);
 
+  if (mIsDestroyed) {
+    return false;
+  }
+
   MapEventCoordinatesForChildProcess(mChildProcessOffsetAtTouchStart, &e);
 
   return (e.message == NS_TOUCH_MOVE) ?
     PBrowserParent::SendRealTouchMoveEvent(e, guid) :
     PBrowserParent::SendRealTouchEvent(e, guid);
 }
 
 /*static*/ TabParent*