Open Bug 1521445 Opened 7 years ago Updated 3 years ago

nsTextEditorState should check whether TextEditor isn't destroyed

Categories

(Core :: DOM: Editor, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: m_kato, Unassigned)

Details

When debugging bug 1518002, I found that nsTextEditorState doesn't check whether mTextEditor isn't destroyed. Example, nsTextEditorState::HasNonEmptyValue will be called during reflow when element has placeholder. It will call editor's function, then editor returns error due to destroyed. Since mTextEditor is recycled object, it may not be enough whether mTextEditor is nullptr.

So I guess that we should check whether editor is alive on some situations.

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.