RESOLVED FIXED 19403
ASSERT in InsertIntoTextNodeCommand::InsertIntoTextNodeCommand during RemoveFormat call
https://bugs.webkit.org/show_bug.cgi?id=19403
Summary ASSERT in InsertIntoTextNodeCommand::InsertIntoTextNodeCommand during RemoveF...
Justin Garcia
Reported 2008-06-05 17:29:50 PDT
Run the attached test case in a debug build. ASSERT(!text.isEmpty()) inside InsertIntoTextNodeCommand::InsertIntoTextNodeCommand fires because RemoveFormat calls input with an empty String. plainText() is returning an empty string for a Range selection for some reason...
Attachments
test case (239 bytes, text/html)
2008-06-05 17:30 PDT, Justin Garcia
no flags
patch (2.71 KB, patch)
2008-06-05 20:56 PDT, Justin Garcia
eric: review+
Justin Garcia
Comment 1 2008-06-05 17:30:27 PDT
Created attachment 21516 [details] test case
Justin Garcia
Comment 2 2008-06-05 20:56:04 PDT
Eric Seidel (no email)
Comment 3 2008-06-05 21:32:18 PDT
Comment on attachment 21519 [details] patch Looks good. The if (string.isEmpty()) should have a comment before it explaning "why", since I'm not sure it will be clear to either of us why it's there in 9 months. :) If you strongly disagree I'm fine w/ you to landing w/o comment. I don't need to see your final patch again either way. :)
Justin Garcia
Comment 4 2008-06-05 21:46:04 PDT
(In reply to comment #3) > (From update of attachment 21519 [details] [edit]) > Looks good. The if (string.isEmpty()) should have a comment before it > explaning "why", since I'm not sure it will be clear to either of us why it's > there in 9 months. :) You're right. Fixed that. http://trac.webkit.org/changeset/34399
Note You need to log in before you can comment on or make changes to this bug.