Commit 6945702d authored by andersca's avatar andersca
Browse files

Reviewed by Dave Hyatt.

        Don't add the data twice, it's also done by didReceiveData.
        
        * WebCoreSupport/WebFrameLoaderClient.mm:
        (WebFrameLoaderClient::deliverArchivedResources):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20210 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 01dd65f4
2007-03-14 Anders Carlsson <acarlsson@apple.com>
Reviewed by Dave Hyatt.
Don't add the data twice, it's also done by didReceiveData.
* WebCoreSupport/WebFrameLoaderClient.mm:
(WebFrameLoaderClient::deliverArchivedResources):
2007-03-14 Anders Carlsson <acarlsson@apple.com> 2007-03-14 Anders Carlsson <acarlsson@apple.com>
   
Fix segmentation fault when running layout tests. Fix segmentation fault when running layout tests.
......
...@@ -949,7 +949,6 @@ void WebFrameLoaderClient::deliverArchivedResources(Timer<WebFrameLoaderClient>* ...@@ -949,7 +949,6 @@ void WebFrameLoaderClient::deliverArchivedResources(Timer<WebFrameLoaderClient>*
WebResource *resource = it->second.get(); WebResource *resource = it->second.get();
NSData *data = [[resource data] retain]; NSData *data = [[resource data] retain];
loader->didReceiveResponse([resource _response]); loader->didReceiveResponse([resource _response]);
loader->addData((const char*)[data bytes], [data length], true);
loader->didReceiveData((const char*)[data bytes], [data length], [data length], true); loader->didReceiveData((const char*)[data bytes], [data length], [data length], true);
[data release]; [data release];
loader->didFinishLoading(); loader->didFinishLoading();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment