Closed Bug 125906 Opened 23 years ago Closed 22 years ago

crash in Form

Categories

(Core :: Layout: Form Controls, defect, P1)

x86
All
defect

Tracking

()

VERIFIED FIXED
mozilla1.0

People

(Reporter: Matti, Assigned: john)

References

()

Details

(Keywords: crash)

Attachments

(3 files, 1 obsolete file)

win2k build 20020210.. debug and 20020215..

1. Open URL
2. click on the link "SELFHTML Quickbar"
3. Select CSS-Syntaxverzeichnis in the form "SELFHTML Quickbar"
4.click the arrow in the right (second) form
5. hit the key "o" and scroll down with the scroll wheel and sevelct "overflow"
6. crash
Attached file win2k stack trace
Keywords: crash
froze for nearly a minute before dying, linux 2002-02-10-06-trunk. os->all
OS: Windows 2000 → All
I get basically the same stack trace. Basically, just scroll around and then
select an item to do the submit
Assignee: rods → jkeiser
Keywords: nsbeta1
Target Milestone: --- → mozilla1.0
nsbeta1+
Keywords: nsbeta1nsbeta1+
Priority: -- → P1
Attached patch Patch (obsolete) — Splinter Review
The problem is, nsHTMLSelectElement::RemoveFocus() is called before that bit is
set that tells the system that it is actually blurred.	When we fire onChange
from there, and the selected index has changed, the JS immediately runs and
causes another blur to occur (since the system still thinks it's blurred).  We
have not yet marked the boolean flag that says onChange has already been fired,
so we then fire again, which blurs again ... etc.

This fix should deal with all symptoms of the problem, though I'm queasy about
the fact that onBlur() is called twice at all.	Perhaps there is a way to dump
the onChange event in the event queue rather than handling it immediately?
Ok, I have decided this is good enough for 1.0 since it fixes the crash and
really is the way to do it anyway.  The rest of the story is filed as bug 130500.
Comment on attachment 73636 [details] [diff] [review]
Patch

r=rods
Attachment #73636 - Flags: review+
Attached patch Patch v1.0.1Splinter Review
Added a nullcheck to make us not crash on listboxes.
Attachment #73636 - Attachment is obsolete: true
Comment on attachment 73916 [details] [diff] [review]
Patch v1.0.1

Transferring r=rods
Attachment #73916 - Flags: review+
Comment on attachment 73916 [details] [diff] [review]
Patch v1.0.1

sr=attinasi
Attachment #73916 - Flags: superreview+
Comment on attachment 73916 [details] [diff] [review]
Patch v1.0.1

a=asa (on behalf of drivers) for checkin to the 1.0 trunk
Attachment #73916 - Flags: approval+
Fix checked in.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
verified fixed 
win2000 buildID: 2002-03-18-05trunk
redhat Linux 7.2 buildID: 2002-03-18-06trunk
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: