Fixing bug 106181. When a window object is asked for the numeric property n, we return the n:th frame in the window, but if there is no n:th frame we should let the JS engine do its thing w/o forsing it to return null. r=jag@netscape.com, sr=rpotts@netscape.com

git-svn-id: svn://10.0.0.236/trunk@106247 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jst%netscape.com 2001-10-25 05:09:03 +00:00
parent c70f31b748
commit 18b8171d1a

View File

@ -2365,8 +2365,10 @@ nsWindowSH::GetProperty(nsIXPConnectWrappedNative *wrapper, JSContext *cx,
frames->Item(JSVAL_TO_INT(id), getter_AddRefs(f));
rv = WrapNative(cx, ::JS_GetGlobalObject(cx), f,
NS_GET_IID(nsIDOMWindow), vp);
if (f) {
rv = WrapNative(cx, ::JS_GetGlobalObject(cx), f,
NS_GET_IID(nsIDOMWindow), vp);
}
}
}