2008-10-09 Brady Eidson <beidson@apple.com>
authorbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 9 Oct 2008 20:43:24 +0000 (20:43 +0000)
committerbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 9 Oct 2008 20:43:24 +0000 (20:43 +0000)
commit4a2262380744a40e5aadf9cd0dc9a9c7bdb6735c
treea29b3af5720e84d9175e0a679338f0b88edd4b8c
parentf6e1ebfd555cf01c691aa68a4356bf2a15d452a2
2008-10-09  Brady Eidson  <beidson@apple.com>

        Reviewed by Anders

        <rdar://problem/6250856> - Calling [WebView close] from within a redirection callback can cause bad things

        The API usage to reveal this crash was so particular that a layout test is not possible with our current infrastructure.

        * loader/FrameLoader.cpp:
        (WebCore::FrameLoader::changeLocation): Protect the Frame from deletion
        (WebCore::FrameLoader::continueLoadAfterNavigationPolicy): stopAllLoaders() might clear the Frame's page,
          so perform a second null check on the page.  Bail if it has been cleared.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@37449 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/loader/FrameLoader.cpp