Bug 1304457 - Ensure that RemoteContentController doesn't try to send any messages after it has sent the Destroy message. r?dvander draft
authorKartikaya Gupta <kgupta@mozilla.com>
Wed, 21 Sep 2016 13:51:21 -0400
changeset 416219 001ddb20684422a1177172e49efbdd599bb5469c
parent 415495 62f79d676e0e11b3ad59a5425b3ebb3ec5bbefb5
child 416220 708be6822a78de646fc3a4a22b0254d36c8a4358
push id30064
push userkgupta@mozilla.com
push dateWed, 21 Sep 2016 17:52:14 +0000
reviewersdvander
bugs1304457
milestone52.0a1
Bug 1304457 - Ensure that RemoteContentController doesn't try to send any messages after it has sent the Destroy message. r?dvander 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