mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 658909 - Remove GWNOJO from nsDOMClassInfo. r=mrbkap
This commit is contained in:
parent
5dd8152ac6
commit
b396544c53
@ -5156,8 +5156,10 @@ static nsresult
|
|||||||
LocationSetterGuts(JSContext *cx, JSObject *obj, jsval *vp)
|
LocationSetterGuts(JSContext *cx, JSObject *obj, jsval *vp)
|
||||||
{
|
{
|
||||||
// This function duplicates some of the logic in XPC_WN_HelperSetProperty
|
// This function duplicates some of the logic in XPC_WN_HelperSetProperty
|
||||||
XPCWrappedNative *wrapper =
|
obj = js::UnwrapObjectChecked(obj, /* stopAtOuter = */ false);
|
||||||
XPCWrappedNative::GetWrappedNativeOfJSObject(cx, obj);
|
if (!IS_WN_WRAPPER(obj))
|
||||||
|
return NS_ERROR_XPC_BAD_CONVERT_JS;
|
||||||
|
XPCWrappedNative *wrapper = XPCWrappedNative::Get(obj);
|
||||||
|
|
||||||
// The error checks duplicate code in THROW_AND_RETURN_IF_BAD_WRAPPER
|
// The error checks duplicate code in THROW_AND_RETURN_IF_BAD_WRAPPER
|
||||||
NS_ENSURE_TRUE(!wrapper || wrapper->IsValid(), NS_ERROR_XPC_HAS_BEEN_SHUTDOWN);
|
NS_ENSURE_TRUE(!wrapper || wrapper->IsValid(), NS_ERROR_XPC_HAS_BEEN_SHUTDOWN);
|
||||||
|
Loading…
Reference in New Issue
Block a user