Changeset 157383 in webkit


Ignore:
Timestamp:
Oct 13, 2013 2:21:32 PM (11 years ago)
Author:
akling@apple.com
Message:

REGRESSION(r157381): Make Document::body() crash less when there is no documentElement.

Unreviewed.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r157381 r157383  
     12013-10-13  Andreas Kling  <akling@apple.com>
     2
     3        REGRESSION(r157381): Make Document::body() crash less when there is no documentElement.
     4
     5        Unreviewed.
     6
    172013-10-13  Darin Adler  <darin@apple.com>
    28
  • trunk/Source/WebCore/dom/Document.cpp

    r157381 r157383  
    22422242    // If the document element contains both a frameset and a body, the frameset wins.
    22432243    auto element = documentElement();
     2244    if (!element)
     2245        return nullptr;
    22442246    if (auto frameset = childrenOfType<HTMLFrameSetElement>(element).first())
    22452247        return frameset;
Note: See TracChangeset for help on using the changeset viewer.