Our current caret cleanup code has two problems. One of them is that we don't clean up the caret correctly on dragexit (the same way that we do on drop), and the second problem is that we cache the created caret, which is unnecessary, and could probably cause us to use a stale caret object if the presshell dies, for example. I have a patch which fixes both of these issues.
Attachment #520019 - Flags: review?(roc) → review+
Let's clean this up even more. The caret itself tracks its drawn status, so maintaining it in nsEditorEventListener is both error prone and useless, so let's get rid of mCaretDrawn altogether.
Attachment #520046 - Flags: review?(roc) → review+
Status: NEW → RESOLVED
Last Resolved: 8 years ago
No longer depends on: post2.0
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.2
You need to log in before you can comment on or make changes to this bug.