Changeset 58230 in webkit


Ignore:
Timestamp:
Apr 25, 2010 9:16:58 AM (14 years ago)
Author:
hamaji@chromium.org
Message:

2010-04-25 Shinichiro Hamaji <hamaji@chromium.org>

Reviewed by Simon Hausmann.

[Qt] layoutTestController.counterValueForElementById crashes for a nonexistent ID
https://bugs.webkit.org/show_bug.cgi?id=34573

  • WebCoreSupport/DumpRenderTreeSupportQt.cpp: (DumpRenderTreeSupportQt::counterValueForElementById):
Location:
trunk/WebKit/qt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/qt/ChangeLog

    r58218 r58230  
     12010-04-25  Shinichiro Hamaji  <hamaji@chromium.org>
     2
     3        Reviewed by Simon Hausmann.
     4
     5        [Qt] layoutTestController.counterValueForElementById crashes for a nonexistent ID
     6        https://bugs.webkit.org/show_bug.cgi?id=34573
     7
     8        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
     9        (DumpRenderTreeSupportQt::counterValueForElementById):
     10
    1112010-04-20  Robert Hogan  <robert@webkit.org>
    212
  • trunk/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.cpp

    r58218 r58230  
    266266    Frame* coreFrame = QWebFramePrivate::core(frame);
    267267    if (Document* document = coreFrame->document()) {
    268         Element* element = document->getElementById(id);
    269         return WebCore::counterValueForElement(element);
     268        if (Element* element = document->getElementById(id))
     269            return WebCore::counterValueForElement(element);
    270270    }
    271271    return QString();
Note: See TracChangeset for help on using the changeset viewer.