WebCore:
authordarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 Apr 2008 17:54:27 +0000 (17:54 +0000)
committerdarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 Apr 2008 17:54:27 +0000 (17:54 +0000)
commit12eaf1aea4791fca964eb1b744f246bc43d72f7e
tree4f13ba3b70474616fcda782220e3ee2a61984f6e
parent12888d03807f6634da9fccf163590ae40e277ec4
WebCore:

2008-04-24  Darin Adler  <darin@apple.com>

        Reviewed by Geoff.

        - fix crash in regression test where we'd ask a frame for a user agent string
          after the WebView was already closed

        * loader/FrameLoader.cpp:
        (WebCore::FrameLoader::scheduleHTTPRedirection): Quietly do nothing if this is
        called on a frame that's already detached from its page.
        (WebCore::FrameLoader::scheduleLocationChange): Ditto.
        (WebCore::FrameLoader::scheduleRefresh): Ditto.
        (WebCore::FrameLoader::scheduleHistoryNavigation): Ditto.
        (WebCore::FrameLoader::redirectionTimerFired): Assert that this is never called
        for a frame that's already detached from its page.
        (WebCore::FrameLoader::scheduleRedirection): Ditto.
        (WebCore::FrameLoader::startRedirectionTimer): Ditto.

WebKit/mac:

2008-04-24  Darin Adler  <darin@apple.com>

        Reviewed by Geoff.

        - fix crash in regression test where we'd ask a frame for a user agent string
          after the WebView was already closed

        * WebCoreSupport/WebFrameLoaderClient.mm:
        (WebFrameLoaderClient::userAgent): Assert that the WebView is not nil. Also
        added some code to prevent the crash in release builds if this problem happens
        again.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@32500 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/loader/FrameLoader.cpp
WebKit/mac/ChangeLog
WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm