mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-22 02:09:28 +00:00
Don't let plugin return a null window object and NPERR_NO_ERROR, r=jst.
This commit is contained in:
parent
cbf1241f3c
commit
a6336324be
@ -2080,7 +2080,7 @@ _getvalue(NPP npp, NPNVariable variable, void *result)
|
||||
case NPNVWindowNPObject: {
|
||||
*(NPObject **)result = _getwindowobject(npp);
|
||||
|
||||
return NPERR_NO_ERROR;
|
||||
return *(NPObject **)result ? NPERR_NO_ERROR : NPERR_GENERIC_ERROR;
|
||||
}
|
||||
|
||||
case NPNVPluginElementNPObject: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user