[Webkit-unassigned] [Bug 62092] setting innerText to an empty string on editable div loses focus

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 28 09:50:35 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=62092





--- Comment #80 from Una Sabovic <una.sabovic at palm.com>  2011-09-28 09:50:34 PST ---
What happens is that now when the selection is not blown away when start or end node is removed in FrameSelection::respondToNodeModification the text "FAILURE" is actually pasted. So the flow is:

1. "FAILURE" is cut and selection is updated
2. onPasteHandler is called setting div.innerText to "SUCCESS" and selection is updated
3. Editor::pasteAsPlainText() continues executing but canPaste() now returns true since selection is valid
4. Paste inserts "FAILURE" before "SUCCESS" and we end up with "FAILURESUCCESS"

with old behavior canPaste() was returning false since selection was null and text "FAILURE" was not pasted at all.

If this sounds ok I will update the test.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list