mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 06:15:43 +00:00
Don't rely on the plugin methods to return a non-null actor when the say NPERR_NO_ERROR... crashing here is a no-no even if the plugin is stupid.
This commit is contained in:
parent
e9c5c10cac
commit
661a77e3d4
@ -406,7 +406,10 @@ PluginInstanceParent::NPP_GetValue(NPPVariable aVariable,
|
||||
return rv;
|
||||
}
|
||||
|
||||
NS_ASSERTION(actor, "Null actor!");
|
||||
if (!actor) {
|
||||
NS_ERROR("NPPVpluginScriptableNPObject succeeded but null.");
|
||||
return NPERR_GENERIC_ERROR;
|
||||
}
|
||||
|
||||
const NPNetscapeFuncs* npn = mParent->GetNetscapeFuncs();
|
||||
if (!npn) {
|
||||
|
Loading…
Reference in New Issue
Block a user