Bug 691424 - Ensure that plugin processes that can't create a crash reporter actor abort the plugin creation process. r=bsmedberg

This commit is contained in:
Josh Matthews
2011-10-19 15:32:17 -04:00
parent 022763a308
commit 7326a82739
2 changed files with 9 additions and 3 deletions

View File

@@ -116,7 +116,11 @@ PluginModuleParent::LoadModule(const char* aFilePath)
TimeoutChanged(kChildTimeoutPref, parent);
#ifdef MOZ_CRASHREPORTER
CrashReporterParent::CreateCrashReporter(parent.get());
// If this fails, we're having IPC troubles, and we're doomed anyways.
if (!CrashReporterParent::CreateCrashReporter(parent.get())) {
parent->mShutdown = true;
return nsnull;
}
#endif
return parent.forget();