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