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:
Benjamin Smedberg
2014-03-04 12:17:01 -05:00
parent 8081ef48ff
commit 5064bec7b3
3 changed files with 18 additions and 1 deletions

View File

@@ -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;
}