mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 21:28:55 +00:00
Bug 620647 - plugin-container crashes after channel error r=jones.chris.g sr=roc a=approval2.0
This commit is contained in:
parent
a5adebb25d
commit
b451e4ae09
@ -579,9 +579,21 @@ PluginModuleChild::AnswerNP_Shutdown(NPError *rv)
|
||||
return true;
|
||||
}
|
||||
|
||||
void
|
||||
PluginModuleChild::QuickExit()
|
||||
{
|
||||
NS_WARNING("plugin process _exit()ing");
|
||||
_exit(0);
|
||||
}
|
||||
|
||||
void
|
||||
PluginModuleChild::ActorDestroy(ActorDestroyReason why)
|
||||
{
|
||||
if (AbnormalShutdown == why) {
|
||||
NS_WARNING("shutting down early because of crash!");
|
||||
QuickExit();
|
||||
}
|
||||
|
||||
// doesn't matter why we're being destroyed; it's up to us to
|
||||
// initiate (clean) shutdown
|
||||
XRE_ShutdownChildProcess();
|
||||
|
@ -140,6 +140,8 @@ protected:
|
||||
virtual void
|
||||
ActorDestroy(ActorDestroyReason why);
|
||||
|
||||
NS_NORETURN void QuickExit();
|
||||
|
||||
public:
|
||||
PluginModuleChild();
|
||||
virtual ~PluginModuleChild();
|
||||
|
Loading…
x
Reference in New Issue
Block a user