Bug 603680: Paper over lack of IPDL |discard| (and possible weirdly short-lived <browser>s). r=bsmedberg a=blocking-fennec

This commit is contained in:
Chris Jones 2010-10-26 12:51:08 -05:00
parent a8743f8dcc
commit 0355845713
2 changed files with 5 additions and 2 deletions

View File

@ -694,7 +694,8 @@ PRenderFrameParent*
TabParent::AllocPRenderFrame()
{
nsRefPtr<nsFrameLoader> frameLoader = GetFrameLoader();
return new RenderFrameParent(frameLoader);
NS_WARN_IF_FALSE(frameLoader, "'message sent to unknown actor ID' coming up");
return frameLoader ? new RenderFrameParent(frameLoader) : nsnull;
}
bool

View File

@ -174,7 +174,9 @@ IsTempLayerManager(LayerManager* aManager)
RenderFrameParent::RenderFrameParent(nsFrameLoader* aFrameLoader)
: mFrameLoader(aFrameLoader)
{}
{
NS_ABORT_IF_FALSE(aFrameLoader, "Need a frameloader here");
}
RenderFrameParent::~RenderFrameParent()
{}