Backed out changeset 0e127c7f69c4 (bug 1160166) for e10s LSAN leaks.

CLOSED TREE
This commit is contained in:
Ryan VanderMeulen 2015-07-13 14:32:29 -04:00
parent 14d77293f9
commit e3ec589549

View File

@ -2511,13 +2511,12 @@ nsPluginHost::FindPluginsForContent(uint32_t aPluginEpoch,
return;
}
uint32_t count;
nsIPluginTag** plugins;
GetPluginTags(&count, &plugins);
nsTArray<nsRefPtr<nsPluginTag>> plugins;
GetPlugins(plugins);
for (size_t i = 0; i < plugins.Length(); i++) {
nsRefPtr<nsPluginTag> tag = plugins[i];
for (size_t i = 0; i < count; i++) {
nsRefPtr<nsPluginTag> tag = static_cast<nsPluginTag*>(plugins[i]);
NS_RELEASE(plugins[i]);
if (!nsNPAPIPlugin::RunPluginOOP(tag)) {
// Don't expose non-OOP plugins to content processes since we have no way
// to bridge them over.