Bug 1085710 - Stop trying to send nsIPluginTag over IPC (r=mconley)

This commit is contained in:
Bill McCloskey
2014-10-29 08:04:51 -07:00
parent 61cc705b2e
commit e4b3d8b064

View File

@@ -125,6 +125,14 @@ PluginContent.prototype = {
pluginTag = pluginHost.getPluginTagForType(pluginElement.actualType);
pluginName = BrowserUtils.makeNicePluginName(pluginTag.name);
// Convert this from nsIPluginTag so it can be serialized.
let properties = ["name", "description", "filename", "version", "enabledState"];
let pluginTagCopy = {};
for (let prop of properties) {
pluginTagCopy[prop] = pluginTag[prop];
}
pluginTag = pluginTagCopy;
permissionString = pluginHost.getPermissionStringForType(pluginElement.actualType);
fallbackType = pluginElement.defaultFallbackType;
blocklistState = pluginHost.getBlocklistStateForType(pluginElement.actualType);