mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 413074 Bad param "value" to nsXPConnect::JSToVariant() r=mrbkap sr=jst a=mtschrep
This commit is contained in:
parent
f183ea3509
commit
d41cf6beb6
@ -1962,7 +1962,10 @@ nsJSContext::CallEventHandler(nsISupports* aTarget, void *aScope, void *aHandler
|
||||
// we would need to root rval.
|
||||
JSAutoRequest ar(mContext);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
rv = nsContentUtils::XPConnect()->JSToVariant(mContext, rval, arv);
|
||||
if (rval == JSVAL_NULL)
|
||||
*arv = nsnull;
|
||||
else
|
||||
rv = nsContentUtils::XPConnect()->JSToVariant(mContext, rval, arv);
|
||||
}
|
||||
|
||||
// ScriptEvaluated needs to come after we pop the stack
|
||||
|
Loading…
Reference in New Issue
Block a user