mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 658909 - Remove GWNOJO from AccessCheck. r=mrbkap
This commit is contained in:
parent
7b7ed3edeb
commit
5dd8152ac6
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user