Closed Bug 328398 Opened 18 years ago Closed 7 years ago

window[0] is evaluated three times

Categories

(Core :: XPConnect, defect)

PowerPC
macOS
defect
Not set
minor

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jruderman, Unassigned)

References

()

Details

(Keywords: perf, testcase)

Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.9a1) Gecko/20060223 Firefox/1.6a1

Steps to reproduce in a debug build:
1. javascript:window[0]; void 0

Result: The following pair of warnings appears three times:

WARNING: NS_ENSURE_TRUE(child) failed: file /Users/admin/trunk/mozilla/docshell/base/nsDocShell.cpp, line 2415
WARNING: Too large an index passed to GetChildAt: file /Users/admin/trunk/mozilla/docshell/base/nsDocShell.cpp, line 2410

Expected: It should only appear one time.
Assignee: dbradley → nobody
QA Contact: pschwartau → xpconnect
Now the latter warning appears four times!
Severity: normal → minor
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.