Bug 1345657. r=dvander, a=abillings
authorKartikaya Gupta <kgupta@mozilla.com>
Wed, 15 Mar 2017 15:30:10 -0400
changeset 395170 90fa743e397014996765450dda40d7feedad5266
parent 395169 1831b8da127fe0a4ffc8b457481108c3912d32d2
child 395171 4d874f162743fd9a8ee9f8cb6abf45523d01f8f9
push id1468
push userasasaki@mozilla.com
push dateMon, 05 Jun 2017 19:31:07 +0000
treeherdermozilla-release@0641fc6ee9d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdvander, abillings
bugs1345657
milestone54.0a2
Bug 1345657. r=dvander, a=abillings MozReview-Commit-ID: LRCtitKvGbJ
dom/ipc/TabParent.cpp
--- a/dom/ipc/TabParent.cpp
+++ b/dom/ipc/TabParent.cpp
@@ -647,17 +647,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.