Bug 15714

Summary: REGRESSION: insertion point disappears after deleting the last character in inline hole
Product: WebKit Reporter: Alexey Proskuryakov <ap>
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Major CC: darin, justin.garcia
Priority: P1 Keywords: InRadar, Regression
Version: 523.x (Safari 3)   
Hardware: Mac   
OS: OS X 10.4   

Description Alexey Proskuryakov 2007-10-26 12:12:54 PDT
Steps to reproduce:
1. Type any single character with Kotoeri.
2. Press backspace.

Results: insertion point disappears; further keypresses have no effect.
Comment 1 Alexey Proskuryakov 2007-11-02 00:33:09 PDT
Actually, I'm seeing the insertion point disappear all the time when typing with RuSwitcher, even when not using Backspace. I'm not opening a new bug as I hope that the root cause is the same.

Makes typing really hard for me :(
Comment 2 Alexey Proskuryakov 2007-11-02 00:45:57 PDT
This was apparently introduced in r27009 with a fix for rdar://problem/5544856 and (incidentally) bug 15702.
Comment 3 David Kilzer (:ddkilzer) 2007-11-02 11:07:55 PDT
<rdar://problem/5576619>
Comment 4 Justin Garcia 2007-11-02 12:44:18 PDT
Investigating...
Comment 5 Justin Garcia 2007-11-02 14:11:12 PDT
I have a fix, TypingCommand::deleteSelection needs to call typingAddedToOpenCommand(), which will take the command's endingSelection and set it as selection.  Working on a layout test.
Comment 6 Alexey Proskuryakov 2007-11-06 22:41:14 PST
Fixed in <http://trac.webkit.org/projects/webkit/changeset/27488>.