LayoutTests:
authorandersca <andersca@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 Dec 2006 00:54:15 +0000 (00:54 +0000)
committerandersca <andersca@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 Dec 2006 00:54:15 +0000 (00:54 +0000)
commit03b654ccc8a019ee3fa9efddb51eb70c17ef173e
tree6a9addce9d51bafa9305fb651bb5705ec52e4f84
parent4dd5cfc97d2ce87bcdfa33761b466d317b872ac6
LayoutTests:

        Reviewed by Darin.

        <rdar://problem/4838778>
        DashboardClient crashing in WebCore::SubresourceLoader::didFail.

        * http/tests/xmlhttprequest/abort-crash-expected.txt: Added.
        * http/tests/xmlhttprequest/abort-crash.html: Added.
        * http/tests/xmlhttprequest/hello-world.cgi: Added.

WebCore:

        Reviewed by Darin.

        <rdar://problem/4838778>
        Title: DashboardClient crashing in WebCore::SubresourceLoader::didFail

        * loader/SubresourceLoader.cpp:
        (WebCore::SubresourceLoader::stopLoading):
        * loader/SubresourceLoader.h:
        Add stopLoading method which currently just clears the client. This isn't the ideal fix,
        since it doesn't actually stop the load.

        * loader/mac/SubresourceLoaderMac.mm:
        (WebCore::SubresourceLoader::willSendRequest):
        (WebCore::SubresourceLoader::didReceiveResponse):
        (WebCore::SubresourceLoader::didReceiveData):
        (WebCore::SubresourceLoader::didFinishLoading):
        (WebCore::SubresourceLoader::didFail):
        (WebCore::SubresourceLoader::didCancel):
        Add null-checks.

        * xml/xmlhttprequest.cpp:
        (WebCore::XMLHttpRequest::abort):
        Call stopLoading.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18069 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/tests/xmlhttprequest/abort-crash-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/xmlhttprequest/abort-crash.html [new file with mode: 0644]
LayoutTests/http/tests/xmlhttprequest/hello-world.cgi [new file with mode: 0755]
WebCore/ChangeLog
WebCore/WebCore.xcodeproj/project.pbxproj
WebCore/loader/SubresourceLoader.cpp
WebCore/loader/SubresourceLoader.h
WebCore/loader/mac/SubresourceLoaderMac.mm
WebCore/xml/xmlhttprequest.cpp