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)
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)
Assignee | ||
Updated•26 years ago
|
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
Assignee | ||
Comment 1•26 years ago
|
||
Just checked in a fix.
Updated•26 years ago
|
QA Contact: 3819
Comment 2•26 years ago
|
||
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
Assignee | ||
Comment 3•26 years ago
|
||
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.
Updated•26 years ago
|
Status: RESOLVED → VERIFIED
Comment 4•26 years ago
|
||
Well it doesn't crash on Linux 2/3. Marking verified.
Updated•6 years ago
|
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•