Crashes under scanSelectionForTelephoneNumbers in Range::text() on some sites
authortimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 25 Jul 2014 03:12:19 +0000 (03:12 +0000)
committertimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 25 Jul 2014 03:12:19 +0000 (03:12 +0000)
commite2b1d10b52b605f864ea36c1328703e947f0a95a
tree125d936b102838820e0923d5d99ca4d86bec99c4
parent9d34eeba07c1300838acd692f7e0c8743492c047
Crashes under scanSelectionForTelephoneNumbers in Range::text() on some sites
https://bugs.webkit.org/show_bug.cgi?id=135281
<rdar://problem/17803347>

Reviewed by Ryosuke Niwa.

* editing/Editor.cpp:
(WebCore::Editor::scanSelectionForTelephoneNumbers):
toNormalizedRange is not guaranteed to return a non-null range.
If it returns null, pass the empty markedRanges down to the client as our new set.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@171577 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/editing/Editor.cpp