mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 604368 - Protect against the this translator returning a this object from another domain. r=peterv
--HG-- extra : rebase_source : cf6f17e100d0b2fc1cef483e3480757f636d877a
This commit is contained in:
parent
7961434bd1
commit
e1d2f6f844
@ -1442,6 +1442,8 @@ nsXPCWrappedJSClass::CallMethod(nsXPCWrappedJS* wrapper, uint16 methodIndex,
|
||||
goto pre_call_clean_up;
|
||||
}
|
||||
thisObj = JSVAL_TO_OBJECT(v);
|
||||
if(!JS_WrapObject(cx, &thisObj))
|
||||
goto pre_call_clean_up;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user