Make the ipc plugin runtime abort setting to be Win/OSX only.

This commit is contained in:
wolfbeast
2016-07-29 23:57:22 +02:00
committed by roytam1
parent 1659ac189a
commit c1cf0bb303
+3 -2
View File
@@ -313,8 +313,6 @@ PluginModuleChild::InitForChrome(const std::string& aPluginFilename,
return false;
}
GetIPCChannel()->SetAbortOnError(true);
// TODO: use PluginPRLibrary here
#if defined(OS_LINUX) || defined(OS_BSD)
@@ -328,6 +326,9 @@ PluginModuleChild::InitForChrome(const std::string& aPluginFilename,
NS_ASSERTION(mInitializeFunc, "couldn't find NP_Initialize()");
#elif defined(OS_WIN) || defined(OS_MACOSX)
GetIPCChannel()->SetAbortOnError(true);
mShutdownFunc =
(NP_PLUGINSHUTDOWN)PR_FindFunctionSymbol(mLibrary, "NP_Shutdown");