зеркало из https://github.com/mozilla/pjs.git
Bug 201084 - [AxPlugin] mozilla crashing in new ActiveXObject(). r=adamlock, sr=alecf (Not part of build)
This commit is contained in:
Родитель
5d366e8069
Коммит
8e679ac4a9
|
@ -44,7 +44,7 @@ static JSBool
|
|||
CommonConstructor(JSContext *cx, int name, JSObject *obj, uintN argc,
|
||||
jsval *argv, jsval *rval, PRBool enforceSecurity)
|
||||
{
|
||||
XPCCallContext ccx(JS_CALLER, cx, obj);
|
||||
XPCCallContext ccx(JS_CALLER, cx, JS_GetGlobalObject(cx));
|
||||
XPCJSRuntime *rt = ccx.GetRuntime();
|
||||
if (!rt)
|
||||
{
|
||||
|
@ -96,8 +96,8 @@ CommonConstructor(JSContext *cx, int name, JSObject *obj, uintN argc,
|
|||
// Get a wrapper for our object
|
||||
nsCOMPtr<nsIXPConnectJSObjectHolder> holder;
|
||||
nsresult nsrv = ccx.GetXPConnect()->WrapNative(
|
||||
ccx, obj, NS_REINTERPRET_CAST(nsISupports*, pDispatch.p), NSID_IDISPATCH,
|
||||
getter_AddRefs(holder));
|
||||
ccx, ccx.GetOperandJSObject(), NS_REINTERPRET_CAST(nsISupports*, pDispatch.p),
|
||||
NSID_IDISPATCH, getter_AddRefs(holder));
|
||||
if(NS_FAILED(nsrv))
|
||||
{
|
||||
XPCThrower::Throw(nsrv, ccx);
|
||||
|
|
Загрузка…
Ссылка в новой задаче