зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
c434259e14
Коммит
7d48768362
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче