Bug 396828. 'Assertion failure: (cx)->requestDepth || (cx)->thread == (cx)->runtime->gcThread' within ns4xPluginInstance::Stop. r=jst, sr=brendan, a=jst

This commit is contained in:
sayrer@gmail.com 2007-09-29 23:19:52 -07:00
parent c2438e20e8
commit cf1bde53af

View File

@ -818,6 +818,8 @@ nsJSObjWrapper::NP_Enumerate(NPObject *npobj, NPIdentifier **identifier,
AutoCXPusher pusher(cx);
JSAutoRequest ar(cx);
JSIdArray *ida = ::JS_Enumerate(cx, npjsobj->mJSObj);
if (!ida) {
return PR_FALSE;
@ -1669,6 +1671,8 @@ nsJSNPRuntime::OnPluginDestroy(NPP npp)
return;
}
JSAutoRequest ar(cx);
if (sNPObjWrappers.ops) {
NppAndCx nppcx = { npp, cx };
PL_DHashTableEnumerate(&sNPObjWrappers,