Bug 798980 - Band-aid to crash Camera app instead of the phone. r=cjones

This commit is contained in:
Chris Peterson 2012-10-09 10:26:16 -07:00
parent 50f353ebd7
commit 81303fe1f7

View File

@ -1022,6 +1022,11 @@ TabParent::AllocPRenderFrame(ScrollingBehavior* aScrolling,
MOZ_ASSERT(ManagedPRenderFrameParent().IsEmpty());
nsRefPtr<nsFrameLoader> frameLoader = GetFrameLoader();
if (!frameLoader) {
NS_ERROR("Can't allocate graphics resources, aborting subprocess");
return nullptr;
}
*aScrolling = UseAsyncPanZoom() ? ASYNC_PAN_ZOOM : DEFAULT_SCROLLING;
return new RenderFrameParent(frameLoader,
*aScrolling,