Closed Bug 441994 Opened 16 years ago Closed 16 years ago

Toolbar Customize... context menu entry crashes in [@ nsContentUtils::ComparePosition]

Categories

(Core :: Layout, defect)

x86
Linux
defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla1.9.1a1

People

(Reporter: MatsPalmgren_bugz, Unassigned)

References

Details

(Keywords: crash, regression)

Crash Data

Attachments

(3 files)

Toolbar Customize... context menu entry crashes in [@ nsContentUtils::ComparePosition]. Tracing shows that there's a destroyed content node in mIdContentList. Maybe a regression from bug 344258? STEPS TO REPRODUCE 1. start Firefox 2. right-click on the navigation toolbar 3. select Customize... from the context menu ACTUAL RESULTS crash Firefox 2008062402 nightly on Linux and also in local debug build.
Attached file crash stack (deleted) —
FWIW, the destroyed content node is a: <XUL* xul:hbox@0x1203410 intrinsicstate=[00008000] refcount=1<>
Attachment #326875 - Attachment description: stack → crash stack
FWIW, the id for the offending node is "autocomplete-security-wrapper". There is a call to UpdateIdTableEntry() for it just after it has been created, there are no calls to nsDocument::RemoveFromIdTable for it before it's Release'd.
Related to bug 441607?
Flags: blocking1.9.1?
Keywords: crash
Attached patch Like so? (deleted) — Splinter Review
Bug 344258 added a UpdateIdTableEntry(aElement) in AddElementToDocumentPre(), this is to undo that when the element is removed. Seems to fix bug 441607 too.
Attachment #326969 - Flags: superreview?(roc)
Attachment #326969 - Flags: review?(roc)
Blocks: 441607
Comment on attachment 326969 [details] [diff] [review] Like so? Can you write a crashtest for this, if it's not too hard?
Attachment #326969 - Flags: superreview?(roc)
Attachment #326969 - Flags: superreview+
Attachment #326969 - Flags: review?(roc)
Attachment #326969 - Flags: review+
I tried to write a crashtest, unfortunately I wasn't able to. http://hg.mozilla.org//mozilla-central/index.cgi/rev/352ccf413e87 -> FIXED
Status: NEW → RESOLVED
Closed: 16 years ago
Flags: blocking1.9.1? → in-testsuite?
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.1a1
Crash Signature: [@ nsContentUtils::ComparePosition]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: