LayoutTests:
authorjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 18 May 2007 04:17:59 +0000 (04:17 +0000)
committerjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 18 May 2007 04:17:59 +0000 (04:17 +0000)
commit7add82e28ba6ebeb7745466a9965efe204b83287
treef2f62c15e5f8da3527c22d9360f6300bfb57e010
parentfc12090e56b7e570abab3424a2a32354b317f03a
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
LayoutTests/ChangeLog
LayoutTests/editing/selection/5209984-expected.txt [new file with mode: 0644]
LayoutTests/editing/selection/5209984.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/editing/SelectionController.cpp