Closed
Bug 112170
Opened 24 years ago
Closed 24 years ago
Crash when javascript updates form
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Tracking
()
People
(Reporter: sts, Assigned: joki)
Details
(Keywords: crash, stackwanted)
Attachments
(3 files)
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.6+) Gecko/20011127
BuildID: 2001112706
Reproducible: Always
Steps to Reproduce:
1. Load the testcase
2. Select an item
Actual Results: Mozilla crashes with a segmentation fault.
| Reporter | ||
Comment 1•24 years ago
|
||
Comment 2•24 years ago
|
||
Key: +crash
Sev: normal --> critical
crash on 2001112603/WinNT4 - TB38567843Y
Severity: normal → critical
Keywords: crash
Comment 4•24 years ago
|
||
Comment 5•24 years ago
|
||
Confirming crash with WinNT debug build 2001-12-02. OS : Linux ---> All.
Will attach stack trace below -
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Linux → All
Comment 6•24 years ago
|
||
Comment 7•24 years ago
|
||
The debug WinNT stack trace makes it clear that the crash is due to
infinite recursion. The HTML of the <SELECT> has an onChange handler
that itself causes a change:
<SELECT name="s" onChange="this.form.s[0].text='foo';">
hence the infinite recursion. Reassigning to Event Handling;
will look for duplicate bug -
Assignee: rogerl → joki
Component: Javascript Engine → Event Handling
QA Contact: pschwartau → madhur
Comment 8•24 years ago
|
||
*** This bug has been marked as a duplicate of 77271 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
| Assignee | ||
Comment 10•24 years ago
|
||
Comment on attachment 59328 [details]
Test case
><html><head/>
><body>
><script>
> document.write('<form>');
> document.write('<select name="s" onChange="this.form.s[0].text=\'foo\';">');
> document.write('<option value="foo"l>Foo');
> document.write('</select>');
> document.write('</form>');
></script><form><select name="s" onchange="this.form.s[0].text='foo';"><option value="foo" l="" _moz-option-selected="">Foo</option></select></form>
></body></html>
Updated•7 years ago
|
Component: Event Handling → User events and focus handling
You need to log in
before you can comment on or make changes to this bug.
Description
•