Changeset 90641 in webkit


Ignore:
Timestamp:
Jul 8, 2011 10:24:51 AM (13 years ago)
Author:
Nate Chapin
Message:

Check activeDocumentLoader() in
WebFrameImpl::currentHistoryItem() and return
early if null, since that should mean we're
shutting down.
https://bugs.webkit.org/show_bug.cgi?id=52923

Reviewed by Darin Fisher.

No known repro, so no new test.

  • src/WebFrameImpl.cpp:

(WebKit::WebFrameImpl::currentHistoryItem):

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

Legend:

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

    r90553 r90641  
     12011-07-08  Nate Chapin  <japhet@chromium.org>
     2
     3        Check activeDocumentLoader() in
     4        WebFrameImpl::currentHistoryItem() and return
     5        early if null, since that should mean we're
     6        shutting down.
     7        https://bugs.webkit.org/show_bug.cgi?id=52923
     8
     9        Reviewed by Darin Fisher.
     10
     11        No known repro, so no new test.
     12
     13        * src/WebFrameImpl.cpp:
     14        (WebKit::WebFrameImpl::currentHistoryItem):
     15
    1162011-07-07  Vsevolod Vlasov  <vsevik@chromium.org>
    217
  • trunk/Source/WebKit/chromium/src/WebFrameImpl.cpp

    r90275 r90641  
    967967WebHistoryItem WebFrameImpl::currentHistoryItem() const
    968968{
     969    // We're shutting down.
     970    if (!m_frame->loader()->activeDocumentLoader())
     971        return WebHistoryItem();
     972
    969973    // If we are still loading, then we don't want to clobber the current
    970974    // history item as this could cause us to lose the scroll position and
Note: See TracChangeset for help on using the changeset viewer.