mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
5c553ce8a1
commit
ed086ba697
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user