Bug 1350330 - Make sure IPC channel still Open before sending IPC message. r=dvander. a=gchang
authorvincentliu <vliu@mozilla.com>
Mon, 17 Apr 2017 15:50:42 +0800
changeset 375957 1388c6f3d0aa
parent 375956 9ac3ed4401b5
child 375958 b368c9dcac20
push id11066
push userihsiao@mozilla.com
push date2017-04-18 08:21 +0000
treeherdermozilla-aurora@b7cdc8cfc61f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdvander, gchang
bugs1350330
milestone54.0a2
Bug 1350330 - Make sure IPC channel still Open before sending IPC message. r=dvander. a=gchang
gfx/layers/ipc/ShadowLayers.cpp
--- a/gfx/layers/ipc/ShadowLayers.cpp
+++ b/gfx/layers/ipc/ShadowLayers.cpp
@@ -1050,16 +1050,19 @@ ShadowLayerForwarder::SyncWithCompositor
   }
 }
 
 void
 ShadowLayerForwarder::ReleaseCompositable(const CompositableHandle& aHandle)
 {
   AssertInForwarderThread();
   if (!DestroyInTransaction(aHandle)) {
+    if (!IPCOpen()) {
+      return;
+    }
     mShadowManager->SendReleaseCompositable(aHandle);
   }
   mCompositables.Remove(aHandle.Value());
 }
 
 ShadowableLayer::~ShadowableLayer()
 {
   if (mShadow) {