LayoutTests:
Reviewed by ggaren
<rdar://problem/
5209984> REGRESSION: Crash on click after clearing Facebook status
* editing/selection/
5209984-expected.txt: Added.
* editing/selection/
5209984.html: Added.
WebCore:
Reviewed by ggaren
<rdar://problem/
5209984> REGRESSION: Crash on click after clearing Facebook status
comparePositions() expects non-null positions. It's
given a null position by contains() if the current
selection is a range selection but contains only invisible
content *and* visible positions cannot be created from its
end points. This can happen when there is a range selection
inside shadow content (like that inside text fields) that
is made invisible.
* editing/SelectionController.cpp:
(WebCore::SelectionController::contains): Check for
invisible end points.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@21547
268f45cc-cd09-0410-ab3c-
d52691b4dbfc