To reproduce the bug: - Drag some text to the textarea, but don't drop - Then drag it outside the textarea again (and drop it somewhere) - Focus the textarea Expected result: - Blinking caret in the textarea Actual result: - No caret or readonly caret in the textarea I can look for a regression range, if wanted (my guess would be a regression of bug 287813)
Created attachment 282267 [details] [diff] [review] Proposed fix This patch relies on DragExits always being fired before the next DragEnter, but I think that's a reasonable assumption (unlike all the other assumptions I've made in this code). We simply weren't restoring the caret in all the right places.
Fix checked into trunk.
Verified fixed, using: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a9pre) Gecko/2007100104 Minefield/3.0a9pre