Bug 1430586 - Make sure the NPObjectData map still exists before use. r=jimm

The shutdown path has a way to free the sObjectMap before all plugin references to it have been executed.  It does this by scheduling a DeferNPObjectReleaseRunnable, then shutting down the plugin with PluginInstanceChild::Destroy.  This patch keeps the runnable from failing in that case.
This commit is contained in:
David Parks
2018-01-23 12:56:06 -08:00
parent 7bdf4d91f4
commit d934bd37cc
2 changed files with 6 additions and 1 deletions

View File

@@ -2375,7 +2375,7 @@ PluginModuleChild::NPN_ReleaseObject(NPObject* aNPObj)
PluginInstanceChild* instance = PluginScriptableObjectChild::GetInstanceForNPObject(aNPObj);
if (!instance) {
NS_ERROR("Releasing object not in mObjectMap?");
// The PluginInstanceChild was destroyed
return;
}