Changeset 65061 in webkit


Ignore:
Timestamp:
Aug 10, 2010 2:26:25 AM (14 years ago)
Author:
tkent@chromium.org
Message:

Fix crashes by SelectionController::modify().
https://bugs.webkit.org/show_bug.cgi?id=43032

Reviewed by Darin Adler.

WebCore:

Test: editing/selection/selection-modify-crash.html

  • editing/visible_units.cpp:

(WebCore::endOfDocument): Add NULL-check for document()->documentElement().

LayoutTests:

  • editing/selection/selection-modify-crash-expected.txt: Added.
  • editing/selection/selection-modify-crash.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r65056 r65061  
     12010-08-10  Kent Tamura  <tkent@chromium.org>
     2
     3        Reviewed by Darin Adler.
     4
     5        Fix crashes by SelectionController::modify().
     6        https://bugs.webkit.org/show_bug.cgi?id=43032
     7
     8        * editing/selection/selection-modify-crash-expected.txt: Added.
     9        * editing/selection/selection-modify-crash.html: Added.
     10
    1112010-08-09  Eric Seidel  <eric@webkit.org>
    212
  • trunk/WebCore/ChangeLog

    r65059 r65061  
     12010-08-10  Kent Tamura  <tkent@chromium.org>
     2
     3        Reviewed by Darin Adler.
     4
     5        Fix crashes by SelectionController::modify().
     6        https://bugs.webkit.org/show_bug.cgi?id=43032
     7
     8        Test: editing/selection/selection-modify-crash.html
     9
     10        * editing/visible_units.cpp:
     11        (WebCore::endOfDocument): Add NULL-check for document()->documentElement().
     12
    1132010-08-10  Dirk Schulze  <krit@webkit.org>
    214
  • trunk/WebCore/editing/visible_units.cpp

    r64974 r65061  
    10021002VisiblePosition endOfDocument(const Node* node)
    10031003{
    1004     if (!node || !node->document())
     1004    if (!node || !node->document() || !node->document()->documentElement())
    10051005        return VisiblePosition();
    10061006   
Note: See TracChangeset for help on using the changeset viewer.