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.
git-svn-id: svn://10.0.0.236/trunk@238176 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user