Bug 1304457 - Ensure that RemoteContentController doesn't try to send any messages after it has sent the Destroy message. r=dvander a=gchang
authorKartikaya Gupta <kgupta@mozilla.com>
Wed, 21 Sep 2016 13:51:21 -0400
changeset 355705 68cf1c5b64ecd2a006c439c2c16583c5606de20b
parent 355704 bc17447fefc995c71a6a97a5a5a0f19783df5ad1
child 355706 4dd6247f67104db93b1a495aacb2cf5410a62af1
push id6570
push userraliiev@mozilla.com
push dateMon, 14 Nov 2016 12:26:13 +0000
treeherdermozilla-beta@f455459b2ae5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdvander, gchang
bugs1304457
milestone51.0a2
Bug 1304457 - Ensure that RemoteContentController doesn't try to send any messages after it has sent the Destroy message. r=dvander a=gchang MozReview-Commit-ID: 2tEb6nU049R
gfx/layers/ipc/RemoteContentController.cpp
--- a/gfx/layers/ipc/RemoteContentController.cpp
+++ b/gfx/layers/ipc/RemoteContentController.cpp
@@ -208,14 +208,15 @@ RemoteContentController::ActorDestroy(Ac
   // by a RefPtr, but it is no longer valid to send messages.
   mCanSend = false;
 }
 
 void
 RemoteContentController::Destroy()
 {
   if (mCanSend) {
+    mCanSend = false;
     Unused << SendDestroy();
   }
 }
 
 } // namespace layers
 } // namespace mozilla