From 3fec1c19ba49fd7c760d0b60796bfdf27003b8c7 Mon Sep 17 00:00:00 2001 From: "jst%mozilla.org" Date: Thu, 25 Oct 2007 22:21:04 +0000 Subject: [PATCH] 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 --- mozilla/modules/plugin/base/src/nsJSNPRuntime.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/mozilla/modules/plugin/base/src/nsJSNPRuntime.cpp b/mozilla/modules/plugin/base/src/nsJSNPRuntime.cpp index 74638f21736..b6155aa6f25 100644 --- a/mozilla/modules/plugin/base/src/nsJSNPRuntime.cpp +++ b/mozilla/modules/plugin/base/src/nsJSNPRuntime.cpp @@ -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)) {