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:
Bobby Holley 2013-04-01 15:17:50 -07:00
parent aaaea0d21f
commit 472b87a74d

View File

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