mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Make named arrays not look up names for XPCNativeWrapper. Bug 310069,
r=mrbkap, sr=jst
This commit is contained in:
parent
952e8e8f45
commit
746d3904e7
@ -6722,7 +6722,7 @@ nsNamedArraySH::GetProperty(nsIXPConnectWrappedNative *wrapper, JSContext *cx,
|
||||
JSObject *obj, jsval id, jsval *vp,
|
||||
PRBool *_retval)
|
||||
{
|
||||
if (JSVAL_IS_STRING(id)) {
|
||||
if (JSVAL_IS_STRING(id) && !ObjectIsNativeWrapper(cx, obj)) {
|
||||
nsCOMPtr<nsISupports> item;
|
||||
nsresult rv = GetNamedItem(wrapper->Native(), nsDependentJSString(id),
|
||||
getter_AddRefs(item));
|
||||
|
Loading…
Reference in New Issue
Block a user