Bug 1479277 - Don't try to send APZ messages after teardown. r?botond
MozReview-Commit-ID: 8l0h197hfTj
--- 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;
}