Fixing bug 400619. Make sure to push the JS context onto the JS context stack in NP_HasProperty() to make sure the JS calls in that function work even when called w/o any JS on the stack. r+sr=jonas@sickin.cc, a=drivers.

This commit is contained in:
jst@mozilla.org 2007-10-25 15:21:04 -07:00
parent 5c553ce8a1
commit ed086ba697

View File

@ -680,6 +680,7 @@ nsJSObjWrapper::NP_HasProperty(NPObject *npobj, NPIdentifier identifier)
jsval id = (jsval)identifier;
JSBool found, ok = JS_FALSE;
AutoCXPusher pusher(cx);
JSAutoRequest ar(cx);
if (JSVAL_IS_STRING(id)) {