Bug 516524 - Support NPRuntime across processes. r=bsmedberg.

This commit is contained in:
Ben Turner
2009-10-07 16:50:48 -07:00
parent 4d69c7e50b
commit d420066bce
14 changed files with 1839 additions and 277 deletions

View File

@@ -102,6 +102,7 @@ PluginModuleParent::DeallocPPluginInstance(PPluginInstanceParent* aActor,
{
_MOZ_LOG(__FUNCTION__);
delete aActor;
*_retval = NPERR_NO_ERROR;
return true;
}
@@ -225,6 +226,8 @@ PluginModuleParent::NPP_Destroy(NPP instance,
PluginInstanceParent* parentInstance =
static_cast<PluginInstanceParent*>(instance->pdata);
parentInstance->Destroy();
NPError prv;
if (!Shim::HACK_target->CallPPluginInstanceDestructor(parentInstance, &prv)) {
prv = NPERR_GENERIC_ERROR;