Bug 1345657. r=dvander, a=abillings
authorKartikaya Gupta <kgupta@mozilla.com>
Wed, 15 Mar 2017 15:30:10 -0400
changeset 379070 0a52261a97afa0844ddeff7662e64844d630e41a
parent 379069 7f5193633d2e8420c49d0d22c703d1c5f30018c7
child 379071 9b8185c8700abe48dea9e31e642217cfa5d2532e
push id1419
push userjlund@mozilla.com
push dateMon, 10 Apr 2017 20:44:07 +0000
treeherdermozilla-release@5e6801b73ef6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdvander, abillings
bugs1345657
milestone53.0
Bug 1345657. r=dvander, a=abillings MozReview-Commit-ID: LRCtitKvGbJ
dom/ipc/TabParent.cpp
--- a/dom/ipc/TabParent.cpp
+++ b/dom/ipc/TabParent.cpp
@@ -630,17 +630,19 @@ TabParent::InitRenderFrame()
     MOZ_ASSERT(!GetRenderFrame());
     RefPtr<nsFrameLoader> frameLoader = GetFrameLoader();
     MOZ_ASSERT(frameLoader);
     if (frameLoader) {
       bool success;
       RenderFrameParent* renderFrame = new RenderFrameParent(frameLoader, &success);
       uint64_t layersId = renderFrame->GetLayersId();
       AddTabParentToTable(layersId, this);
-      Unused << SendPRenderFrameConstructor(renderFrame);
+      if (!SendPRenderFrameConstructor(renderFrame)) {
+        return;
+      }
 
       TextureFactoryIdentifier textureFactoryIdentifier;
       renderFrame->GetTextureFactoryIdentifier(&textureFactoryIdentifier);
       Unused << SendInitRendering(textureFactoryIdentifier, layersId, renderFrame);
     }
   } else {
     // Otherwise, the child should have constructed the RenderFrame,
     // and we should already know about it.