-
justing authored
Reviewed by ggaren and harrison <rdar://problem/4744008> 9A270: Mail crashes when I try to paste large items from Safari * editing/pasteboard/4744008-expected.txt: Added. * editing/pasteboard/4744008.html: Added. WebCore: Reviewed by ggaren and harrison <rdar://problem/4744008> 9A270: Mail crashes when I try to paste large items from Safari * editing/ReplaceSelectionCommand.cpp: (WebCore::ReplaceSelectionCommand::removeRedundantStyles): Even though we put nodes in the hash map in pre-order, they don't necessary come out of the iterator that way. If a node is a redundant style span and one of its pruned ancestors comes off the hash map after it, and that ancestor is a redundant style span or font tag, we will try to remove it even though it has already been removed and we'll crash. The test case added with the fix depends on our hash map implementation because it requires that a particular redundant style span come out of the iterator before its parent. So, it may eventually not provide coverage for the fix. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17051 268f45cc-cd09-0410-ab3c-d52691b4dbfc
9763f319