mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 339587 - content canvas getImageData always returns null from chrome context; r+sr=mrbkap
This commit is contained in:
parent
8c5556ab6f
commit
b073b8193c
@ -448,11 +448,8 @@ XPC_NW_RewrapIfDeepWrapper(JSContext *cx, JSObject *obj, jsval v, jsval *rval)
|
||||
|
||||
XPCWrappedNative* wrappedNative =
|
||||
XPCWrappedNative::GetWrappedNativeOfJSObject(cx, nativeObj);
|
||||
if (!wrappedNative) {
|
||||
// Not something we can protect... just make it JSVAL_NULL
|
||||
*rval = JSVAL_NULL;
|
||||
return JS_TRUE;
|
||||
}
|
||||
if (!wrappedNative)
|
||||
return XPC_SJOW_Construct(cx, nsnull, 1, &v, rval);
|
||||
|
||||
if (HAS_FLAGS(flags, FLAG_EXPLICIT)) {
|
||||
#ifdef DEBUG_XPCNativeWrapper
|
||||
|
Loading…
Reference in New Issue
Block a user