Closed Bug 112430 Opened 23 years ago Closed 22 years ago

nsGfxTextControlFrameState2::Destroy() should not trigger calls into the editor

Categories

(Core :: DOM: Editor, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla1.1alpha

People

(Reporter: kinmoz, Assigned: john)

References

Details

This bug was split off from crasher bug 109754, which was fixed with a simple
null check, but the cause is still present ...

The basic problem is that the rev 1.170 checkin to nsGfxTextControlFrame2.cpp by
jst/jkeiser, modified the Destroy() method to call GetTextControlFrameState(),
which uses the editor.

We shouldn't be doing that since at the time Destroy() is called, there are no
guarantees that some of the things the editor relies on, for example style
contexts, content, etc., are going to be around.

We need to find some other place to retrieve the value of the editor, before
Destroy() is called. Perhaps the frame manager has a notification we can hook into?
Blocks: 74091
Setting milestone to 1.0 because of bug 74091.
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.0
Moving to Moz1.1
Target Milestone: mozilla1.0 → mozilla1.1
Blocks: 133357
This was fixed in bug 132334.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
code level fix; need help from development to verify. Charley/Kathy, can you
please verify these and mark verified-fixed ? thanks.
verified....
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.