Bug 1479277 - Don't try to send APZ messages after teardown. r?botond draft
authorKartikaya Gupta <kgupta@mozilla.com>
Mon, 30 Jul 2018 10:00:34 -0400
changeset 824275 d0e06cdc603b1d12ea14cfcaba43878f71adce28
parent 824238 dead9fcddd4a25fd36d54ab7eb782d7d9b8bb7a1
child 824379 8a2dce76790ed27304b058a3f0d959f829f202d2
push id117855
push userkgupta@mozilla.com
push dateMon, 30 Jul 2018 14:01:06 +0000
reviewersbotond
bugs1479277
milestone63.0a1
Bug 1479277 - Don't try to send APZ messages after teardown. r?botond MozReview-Commit-ID: 8l0h197hfTj
dom/ipc/TabChild.cpp
--- a/dom/ipc/TabChild.cpp
+++ b/dom/ipc/TabChild.cpp
@@ -527,17 +527,17 @@ TabChild::SetAllowedTouchBehavior(uint64
   }
 }
 
 bool
 TabChild::DoUpdateZoomConstraints(const uint32_t& aPresShellId,
                                   const ViewID& aViewId,
                                   const Maybe<ZoomConstraints>& aConstraints)
 {
-  if (!mApzcTreeManager) {
+  if (!mApzcTreeManager || mDestroyed) {
     return false;
   }
 
   ScrollableLayerGuid guid = ScrollableLayerGuid(mLayersId, aPresShellId, aViewId);
 
   mApzcTreeManager->UpdateZoomConstraints(guid, aConstraints);
   return true;
 }