Bug 599198 - Content process throws several catastrophic assertions while initializing XPCOM (bandaide) r=bsmedberg a=blocking-fennec

This commit is contained in:
Josh Matthews 2010-09-23 19:28:48 -04:00
parent 0b107990c4
commit 2acbdf0768

View File

@ -86,6 +86,29 @@ ScopedXREEmbed::Start()
localFile = do_QueryInterface(parent);
NS_ENSURE_TRUE(localFile,);
#ifdef OS_MACOSX
rv = localFile->GetParent(getter_AddRefs(parent));
if (NS_FAILED(rv))
return;
localFile = do_QueryInterface(parent);
NS_ENSURE_TRUE(localFile,);
rv = localFile->GetParent(getter_AddRefs(parent));
if (NS_FAILED(rv))
return;
localFile = do_QueryInterface(parent);
NS_ENSURE_TRUE(localFile,);
rv = localFile->GetParent(getter_AddRefs(parent));
if (NS_FAILED(rv))
return;
localFile = do_QueryInterface(parent);
NS_ENSURE_TRUE(localFile,);
#endif
rv = XRE_InitEmbedding2(localFile, localFile, nsnull);
if (NS_FAILED(rv))
return;