RESOLVED FIXED 116509
Fix an assertion failure in Range::textNodeSplit by Text::splitText
https://bugs.webkit.org/show_bug.cgi?id=116509
Summary Fix an assertion failure in Range::textNodeSplit by Text::splitText
Ryosuke Niwa
Reported 2013-05-20 19:45:01 PDT
Merge https://chromium.googlesource.com/chromium/blink/+/a0f5a1c5a050249d3f1be10249a91d88cd18c684 Range::textNodeSplit is called in Text::splitText, and it assumes the next sibling node is still a Text node. A DOM mutation event handler can break this assumption. We had better postpone DOM mutation events dispatched in Node::insertBefore until exiting splitText to avoid inconsistent Range state.
Attachments
Patch (4.24 KB, patch)
2013-06-03 23:50 PDT, Kent Tamura
no flags
Patch for landing (4.32 KB, patch)
2013-06-04 00:12 PDT, Kent Tamura
no flags
Kent Tamura
Comment 1 2013-06-03 23:50:32 PDT
Kent Tamura
Comment 2 2013-06-04 00:12:04 PDT
Created attachment 203659 [details] Patch for landing ChangeLog nits
WebKit Commit Bot
Comment 3 2013-06-04 01:10:11 PDT
Comment on attachment 203659 [details] Patch for landing Clearing flags on attachment: 203659 Committed r151160: <http://trac.webkit.org/changeset/151160>
WebKit Commit Bot
Comment 4 2013-06-04 01:10:13 PDT
All reviewed patches have been landed. Closing bug.
Ahmad Saleem
Comment 5 2024-01-19 05:56:33 PST
*** Bug 116073 has been marked as a duplicate of this bug. ***
Note You need to log in before you can comment on or make changes to this bug.