Bug 624422 - Force OOP plugins on GTK3. r=karlt

This commit is contained in:
Emilio Pozuelo Monfort 2014-05-01 13:25:34 +02:00
parent e159bb1699
commit 2a900375b8

View File

@ -250,6 +250,11 @@ nsNPAPIPlugin::PluginCrashed(const nsAString& pluginDumpID,
bool
nsNPAPIPlugin::RunPluginOOP(const nsPluginTag *aPluginTag)
{
#if (MOZ_WIDGET_GTK == 3)
// We force OOP on Linux/GTK3 because some plugins use GTK2 and both GTK
// libraries can't be loaded in the same process.
return true;
#else
if (PR_GetEnv("MOZ_DISABLE_OOP_PLUGINS")) {
return false;
}
@ -376,6 +381,7 @@ nsNPAPIPlugin::RunPluginOOP(const nsPluginTag *aPluginTag)
}
return oopPluginsEnabled;
#endif
}
inline PluginLibrary*