Bug 339587 - content canvas getImageData always returns null from chrome context; r+sr=mrbkap

This commit is contained in:
brian :crowder 2009-04-20 12:29:40 +02:00
parent 8c5556ab6f
commit b073b8193c

View File

@ -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