Bug 658909 - Remove GWNOJO from AccessCheck. r=mrbkap

This commit is contained in:
Bobby Holley 2013-03-21 08:20:45 -07:00
parent 7b7ed3edeb
commit 5dd8152ac6

View File

@ -168,7 +168,10 @@ IsPermitted(const char *name, JSFlatString *prop, bool set)
static bool
IsFrameId(JSContext *cx, JSObject *obj, jsid id)
{
XPCWrappedNative *wn = XPCWrappedNative::GetWrappedNativeOfJSObject(cx, obj);
obj = JS_ObjectToInnerObject(cx, obj);
MOZ_ASSERT(!js::IsWrapper(obj));
XPCWrappedNative *wn = IS_WN_WRAPPER(obj) ? XPCWrappedNative::Get(obj)
: nullptr;
if (!wn) {
return false;
}