зеркало из https://github.com/mozilla/pjs.git
bug 100665 - Maybe xpconnect should not init the XPCOutArg JSClass. r=jband, sr=shaver
This commit is contained in:
Родитель
3e85d01bb2
Коммит
66dc7e949f
|
@ -361,9 +361,6 @@ nsXPConnect::InitClasses(JSContext * aJSContext, JSObject * aGlobalJSObj)
|
||||||
if(!xpc_InitWrappedNativeJSOps())
|
if(!xpc_InitWrappedNativeJSOps())
|
||||||
return UnexpectedFailure(NS_ERROR_FAILURE);
|
return UnexpectedFailure(NS_ERROR_FAILURE);
|
||||||
|
|
||||||
if(!nsXPCWrappedJSClass::InitClasses(ccx, aGlobalJSObj))
|
|
||||||
return UnexpectedFailure(NS_ERROR_FAILURE);
|
|
||||||
|
|
||||||
XPCWrappedNativeScope* scope =
|
XPCWrappedNativeScope* scope =
|
||||||
XPCWrappedNativeScope::GetNewOrUsed(ccx, aGlobalJSObj);
|
XPCWrappedNativeScope::GetNewOrUsed(ccx, aGlobalJSObj);
|
||||||
|
|
||||||
|
|
|
@ -1921,7 +1921,6 @@ public:
|
||||||
nsIInterfaceInfo* GetInterfaceInfo() const {return mInfo;}
|
nsIInterfaceInfo* GetInterfaceInfo() const {return mInfo;}
|
||||||
const char* GetInterfaceName();
|
const char* GetInterfaceName();
|
||||||
|
|
||||||
static JSBool InitClasses(XPCCallContext& ccx, JSObject* aGlobalJSObj);
|
|
||||||
static JSBool IsWrappedJS(nsISupports* aPtr);
|
static JSBool IsWrappedJS(nsISupports* aPtr);
|
||||||
|
|
||||||
NS_IMETHOD DelegatedQueryInterface(nsXPCWrappedJS* self, REFNSIID aIID,
|
NS_IMETHOD DelegatedQueryInterface(nsXPCWrappedJS* self, REFNSIID aIID,
|
||||||
|
|
|
@ -1431,22 +1431,6 @@ done:
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
static JSClass WrappedJSOutArg_class = {
|
|
||||||
"XPCOutArg", 0,
|
|
||||||
JS_PropertyStub, JS_PropertyStub, JS_PropertyStub, JS_PropertyStub,
|
|
||||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, JS_FinalizeStub
|
|
||||||
};
|
|
||||||
|
|
||||||
// static
|
|
||||||
JSBool
|
|
||||||
nsXPCWrappedJSClass::InitClasses(XPCCallContext& ccx, JSObject* aGlobalJSObj)
|
|
||||||
{
|
|
||||||
if(!JS_InitClass(ccx, aGlobalJSObj,
|
|
||||||
0, &WrappedJSOutArg_class, 0, 0, 0, 0, 0, 0))
|
|
||||||
return JS_FALSE;
|
|
||||||
return JS_TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
const char*
|
const char*
|
||||||
nsXPCWrappedJSClass::GetInterfaceName()
|
nsXPCWrappedJSClass::GetInterfaceName()
|
||||||
{
|
{
|
||||||
|
@ -1458,7 +1442,7 @@ nsXPCWrappedJSClass::GetInterfaceName()
|
||||||
JSObject*
|
JSObject*
|
||||||
nsXPCWrappedJSClass::NewOutObject(JSContext* cx)
|
nsXPCWrappedJSClass::NewOutObject(JSContext* cx)
|
||||||
{
|
{
|
||||||
return JS_NewObject(cx, &WrappedJSOutArg_class, nsnull, nsnull);
|
return JS_NewObject(cx, nsnull, nsnull, nsnull);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче