Backed out changeset 3411c3d9c141 (bug 1318506)

This commit is contained in:
Sebastian Hengst
2016-12-01 13:35:23 +01:00
parent b7916a1a6c
commit b04fc5f8e5

View File

@@ -2756,19 +2756,6 @@ PluginModuleParent::NPP_NewInternal(NPMIMEType pluginType, NPP instance,
// Now replace it with the instance
instance->pdata = static_cast<PluginDataResolver*>(parentInstance);
// Any IPC messages for the PluginInstance actor should be dispatched to the
// DocGroup for the plugin's document.
RefPtr<nsPluginInstanceOwner> owner = parentInstance->GetOwner();
nsCOMPtr<nsIDOMElement> elt;
owner->GetDOMElement(getter_AddRefs(elt));
if (nsCOMPtr<nsINode> node = do_QueryInterface(elt)) {
nsCOMPtr<nsIDocument> doc = node->OwnerDoc();
if (doc) {
nsCOMPtr<nsIEventTarget> eventTarget = doc->EventTargetFor(dom::TaskCategory::Other);
SetEventTargetForActor(parentInstance, eventTarget);
}
}
if (!SendPPluginInstanceConstructor(parentInstance,
nsDependentCString(pluginType), mode,
names, values)) {