Closed Bug 112170 Opened 24 years ago Closed 24 years ago

Crash when javascript updates form

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

x86
All
defect
Not set
critical

Tracking

()

VERIFIED DUPLICATE of bug 77271

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.
Attached file Test case —
Key: +crash Sev: normal --> critical crash on 2001112603/WinNT4 - TB38567843Y
Severity: normal → critical
Keywords: crash
stephend, would you get the stack trace?
Keywords: stackwanted
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
Attached file WinNT stack trace —
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
*** This bug has been marked as a duplicate of 77271 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
See also bug 112241
Status: RESOLVED → VERIFIED
Comment on attachment 59328 [details] Test case ><html><head/> ><body> ><script> > document.write('&lt;form&gt;'); > document.write('&lt;select name="s" onChange="this.form.s[0].text=\'foo\';"&gt;'); > document.write('&lt;option value="foo"l&gt;Foo'); > document.write('&lt;/select&gt;'); > document.write('&lt;/form&gt;'); ></script><form><select name="s" onchange="this.form.s[0].text=&apos;foo&apos;;"><option value="foo" l="" _moz-option-selected="">Foo</option></select></form> ></body></html>
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: