Closed Bug 2787 Opened 26 years ago Closed 26 years ago

Crash on js accessing option index out of range

Categories

(Core :: DOM: Core & HTML, defect, P1)

All
Linux
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: pollmann, Assigned: pollmann)

References

()

Details

I have a fix for this bug in my tree that I'll check in today. Reporting it so that it will get QA coverage. Go to the above url. The browser will crash. (works for positive option indexes out of range too)
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Summary: Crash on js accessing option index out of rangeq → Crash on js accessing option index out of range
Just checked in a fix.
QA Contact: 3819
I checked this on win95 and I get an error in the viewer window that states: JavaScript error: document.form.sel.options[-2] has no properties URL: <null>, LineNo: 0 Line text: <null>, Error test: <null> So, I'm not clear if this is a continuation of this propblem or if it is a new problem. Paul -- can you please test this on linux -- thanks
This is (I think) the correct behaviour. There is no element at index -2 in the array, so viewer is indicating that there is a javascript error (which there is). The bug was that before the fix this javascript error would cause the browser would crash. It doesn't anymore.
Status: RESOLVED → VERIFIED
Well it doesn't crash on Linux 2/3. Marking verified.
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.