Reviewed by John Sullivan.
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 10 Jan 2008 21:51:40 +0000 (21:51 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 10 Jan 2008 21:51:40 +0000 (21:51 +0000)
commit1ddb568c28de99667e07685deec8eb7c209596db
tree276ed109854d25801ba100ef1616f8ffe84df6b0
parentbeddfd7f7a5c3799b1f5a7738591a65e30a5f09f
    Reviewed by John Sullivan.

        <rdar://problem/5455889>
        REGRESSION: BumperCar crashes when attempting to load a long invalid URL

        Make sure to call FrameLoader::receivedMainResourceError before calling
        FrameLoader::didFailToLoad. The call to receivedMainResourceError takes care of
        clearing out the provisional document loader so that we won't call the didFail
        ResourceLoadDelegate method twice. This also makes us call the FrameLoadDelegate method
        didFailPrivisionalLoad before calling the ResourceLoadDelegate method, which Safari 2.0 does.

        * loader/MainResourceLoader.cpp:
        (WebCore::MainResourceLoader::receivedError):

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