Bug 778866 - Abort from the I/O thread on abnormal shutdown of a plugin-process, in case the main thread is wedged and the Firefox process has already been killed, r=cjones
This commit is contained in:
@@ -144,6 +144,8 @@ PluginModuleChild::Init(const std::string& aPluginFilename,
|
||||
{
|
||||
PLUGIN_LOG_DEBUG_METHOD;
|
||||
|
||||
GetIPCChannel()->SetAbortOnError(true);
|
||||
|
||||
#ifdef XP_WIN
|
||||
COMMessageFilter::Initialize(this);
|
||||
#endif
|
||||
@@ -595,6 +597,8 @@ PluginModuleChild::AnswerNP_Shutdown(NPError *rv)
|
||||
ResetEventHooks();
|
||||
#endif
|
||||
|
||||
GetIPCChannel()->SetAbortOnError(false);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user