mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 951847 - Make the |cx| param to XPCCallContext mandatory. r=gabor
This commit is contained in:
parent
43c64baa57
commit
c301532969
@ -17,7 +17,7 @@ using namespace JS;
|
||||
#define IS_TEAROFF_CLASS(clazz) ((clazz) == &XPC_WN_Tearoff_JSClass)
|
||||
|
||||
XPCCallContext::XPCCallContext(XPCContext::LangType callerLanguage,
|
||||
JSContext* cx /* = GetDefaultJSContext() */,
|
||||
JSContext* cx,
|
||||
HandleObject obj /* = nullptr */,
|
||||
HandleObject funobj /* = nullptr */,
|
||||
HandleId name /* = JSID_VOID */,
|
||||
|
@ -607,7 +607,8 @@ nsXPCWrappedJS::SystemIsBeingShutDown()
|
||||
NS_IMETHODIMP
|
||||
nsXPCWrappedJS::GetEnumerator(nsISimpleEnumerator * *aEnumerate)
|
||||
{
|
||||
XPCCallContext ccx(NATIVE_CALLER);
|
||||
AutoJSContext cx;
|
||||
XPCCallContext ccx(NATIVE_CALLER, cx);
|
||||
if (!ccx.IsValid())
|
||||
return NS_ERROR_UNEXPECTED;
|
||||
|
||||
@ -619,7 +620,8 @@ nsXPCWrappedJS::GetEnumerator(nsISimpleEnumerator * *aEnumerate)
|
||||
NS_IMETHODIMP
|
||||
nsXPCWrappedJS::GetProperty(const nsAString & name, nsIVariant **_retval)
|
||||
{
|
||||
XPCCallContext ccx(NATIVE_CALLER);
|
||||
AutoJSContext cx;
|
||||
XPCCallContext ccx(NATIVE_CALLER, cx);
|
||||
if (!ccx.IsValid())
|
||||
return NS_ERROR_UNEXPECTED;
|
||||
|
||||
|
@ -801,7 +801,7 @@ public:
|
||||
static JSContext* GetDefaultJSContext();
|
||||
|
||||
XPCCallContext(XPCContext::LangType callerLanguage,
|
||||
JSContext* cx = GetDefaultJSContext(),
|
||||
JSContext* cx,
|
||||
JS::HandleObject obj = JS::NullPtr(),
|
||||
JS::HandleObject funobj = JS::NullPtr(),
|
||||
JS::HandleId id = JSID_VOIDHANDLE,
|
||||
|
Loading…
Reference in New Issue
Block a user