Fixing the DOM part of bug 257602. Don't bother looking for elements in the document by ID/NAME when resolving class names, or declaring variables. r+sr=brendan@mozilla.org

This commit is contained in:
jst%mozilla.jstenback.com 2004-09-01 20:56:23 +00:00
Родитель c434259e14
Коммит 7d48768362
1 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -3405,10 +3405,12 @@ nsWindowSH::GlobalScopePolluterNewResolve(JSContext *cx, JSObject *obj,
jsval id, uintN flags,
JSObject **objp)
{
if (flags & (JSRESOLVE_ASSIGNING | JSRESOLVE_QUALIFIED) ||
if (flags & (JSRESOLVE_ASSIGNING | JSRESOLVE_DECLARING |
JSRESOLVE_CLASSNAME | JSRESOLVE_QUALIFIED) ||
JSVAL_IS_INT(id)) {
// Nothing to do here if we're assigning, or if we're doing a
// qualified resolve, or resolving a number
// Nothing to do here if we're either assigning or declaring,
// resolving a class name, doing a qualified resolve, or
// resolving a number.
return JS_TRUE;
}