Fixing bug 391182. Remove bogus assertion introduced by one of the fixes for bug 347743. r+sr=jonas@sicking.cc

This commit is contained in:
jst@mozilla.org 2007-08-09 15:25:03 -07:00
parent 45bb02e550
commit 8118d98159

View File

@ -1738,19 +1738,9 @@ nsJSNPRuntime::OnPluginDestroy(NPP npp)
return;
}
JSObject* globalObj = sgo->GetGlobalJSObject();
#ifdef DEBUG
nsIScriptContext* scx = sgo->GetContext();
if (scx) {
NS_ASSERTION((JSContext *)scx->GetNativeContext() == cx,
"Unexpected JS context");
}
#endif
nsCOMPtr<nsISupports> supp(do_QueryInterface(element));
nsCOMPtr<nsIXPConnectWrappedNative> holder;
xpc->GetWrappedNativeOfNativeObject(cx, globalObj, supp,
xpc->GetWrappedNativeOfNativeObject(cx, sgo->GetGlobalJSObject(), supp,
NS_GET_IID(nsISupports),
getter_AddRefs(holder));
if (!holder) {