Changeset 128972 in webkit


Ignore:
Timestamp:
Sep 19, 2012 12:20:40 AM (12 years ago)
Author:
tkent@chromium.org
Message:

[Chromium] Fix crash in WebFrameImpl::loadHistoryItem
https://bugs.webkit.org/show_bug.cgi?id=96352

Reviewed by Adam Barth.

We have some crash reports with the following stack:

  • HistoryItem::shouldDoSameDocumentNavigationTo.
  • WebFrameImpl::loadHistoryItem ...

We don't have reproducible steps, and not sure what's the root
cause. Anyway we should check nullness of currentItem because
HistoryController::m_currentItem can be 0.

  • src/WebFrameImpl.cpp:

(WebKit::WebFrameImpl::loadHistoryItem):
Check nullness of currentItem.

Location:
trunk/Source/WebKit/chromium
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/chromium/ChangeLog

    r128963 r128972  
     12012-09-19  Kent Tamura  <tkent@chromium.org>
     2
     3        [Chromium] Fix crash in WebFrameImpl::loadHistoryItem
     4        https://bugs.webkit.org/show_bug.cgi?id=96352
     5
     6        Reviewed by Adam Barth.
     7
     8        We have some crash reports with the following stack:
     9          - HistoryItem::shouldDoSameDocumentNavigationTo.
     10          - WebFrameImpl::loadHistoryItem
     11          ...
     12
     13        We don't have reproducible steps, and not sure what's the root
     14        cause. Anyway we should check nullness of currentItem because
     15        HistoryController::m_currentItem can be 0.
     16
     17        * src/WebFrameImpl.cpp:
     18        (WebKit::WebFrameImpl::loadHistoryItem):
     19        Check nullness of currentItem.
     20
    1212012-09-18  Sailesh Agrawal  <sail@chromium.org>
    222
  • trunk/Source/WebKit/chromium/src/WebFrameImpl.cpp

    r128903 r128972  
    10301030    m_frame->loader()->prepareForHistoryNavigation();
    10311031    RefPtr<HistoryItem> currentItem = m_frame->loader()->history()->currentItem();
    1032     m_inSameDocumentHistoryLoad = currentItem->shouldDoSameDocumentNavigationTo(historyItem.get());
     1032    m_inSameDocumentHistoryLoad = currentItem && currentItem->shouldDoSameDocumentNavigationTo(historyItem.get());
    10331033    m_frame->page()->goToItem(historyItem.get(),
    10341034                              FrameLoadTypeIndexedBackForward);
Note: See TracChangeset for help on using the changeset viewer.