mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
3715293ac6
commit
a73000fbda
@ -86,7 +86,7 @@ public:
|
||||
the protocol.
|
||||
*/
|
||||
template<class Toplevel>
|
||||
static void CreateCrashReporter(Toplevel* actor);
|
||||
static bool CreateCrashReporter(Toplevel* actor);
|
||||
#endif
|
||||
/* Initialize this reporter with data from the child process */
|
||||
void
|
||||
@ -176,7 +176,7 @@ CrashReporterParent::GenerateCrashReport(Toplevel* t,
|
||||
}
|
||||
|
||||
template<class Toplevel>
|
||||
/* static */ void
|
||||
/* static */ bool
|
||||
CrashReporterParent::CreateCrashReporter(Toplevel* actor)
|
||||
{
|
||||
#ifdef MOZ_CRASHREPORTER
|
||||
@ -189,7 +189,9 @@ CrashReporterParent::CreateCrashReporter(Toplevel* actor)
|
||||
} else {
|
||||
NS_ERROR("Error creating crash reporter actor");
|
||||
}
|
||||
return !!p;
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user