mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 854480 - Remove old-style unwrapping from XPCWrappedJSClass. r=mrbkap
I don't claim to really understand why we can end up with a security wrapper here, but this change should be equivalent.
This commit is contained in:
parent
aaaea0d21f
commit
472b87a74d
@ -752,7 +752,7 @@ nsXPCWrappedJSClass::GetRootJSObject(JSContext* cx, JSObject* aJSObj)
|
||||
NS_GET_IID(nsISupports));
|
||||
if (!result)
|
||||
return aJSObj;
|
||||
JSObject* inner = XPCWrapper::Unwrap(cx, result);
|
||||
JSObject* inner = js::UnwrapObject(result);
|
||||
if (inner)
|
||||
return inner;
|
||||
return result;
|
||||
|
Loading…
Reference in New Issue
Block a user