Closed Bug 370967 Opened 17 years ago Closed 17 years ago

Crash when focusing the input of an isindex and then reloading the document

Categories

(Core :: Layout, defect)

x86
Windows XP
defect
Not set
critical

Tracking

()

RESOLVED FIXED

People

(Reporter: martijn.martijn, Assigned: asqueella)

References

Details

(Keywords: crash, regression, testcase)

Attachments

(2 files, 1 obsolete file)

Attached file testcase
See testcase:
- Focus the text input of the isindex element
- Reload the document

Result: crash
It doesn't happen always, just try it another time, it happens fairly often.

This regressed between 2007-02-18 and 2007-02-19:
http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=all&branch=HEAD&branchtype=match&dir=&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=explicit&mindate=2007-02-18+05&maxdate=2007-02-19+09&cvsroot=%2Fcvsroot
My guess is a regression from bug 257868 since that patch is touching isindex files.
But I guess this might be a regression from bug 368549, instead.
I locally backed out the fixes for bug 368549 and for bug 367779 and I can still reproduce this.
Backing out the patch from bug 257868 fixes this for me.
Now that I null out mInputContent in nsIsIndexFrame::Destroy, the event listener is not destroyed in the destructor.

Interestingly, I can't create an auto-test for this, since it doesn't appear to be possible to focus the isindex from a script (?). I could use some help with this.
Assignee: nobody → asqueella
Flags: in-testsuite?
Attached patch patch (obsolete) — Splinter Review
Attachment #255770 - Flags: superreview?(roc)
Attachment #255770 - Flags: review?(roc)
Attached patch patchSplinter Review
Attachment #255770 - Attachment is obsolete: true
Attachment #255771 - Flags: superreview?(roc)
Attachment #255771 - Flags: review?(roc)
Attachment #255770 - Flags: superreview?(roc)
Attachment #255770 - Flags: review?(roc)
Attachment #255771 - Flags: superreview?(roc)
Attachment #255771 - Flags: superreview+
Attachment #255771 - Flags: review?(roc)
Attachment #255771 - Flags: review+
mozilla/layout/forms/nsIsIndexFrame.cpp 1.87
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: