Commit 1fe53542 authored by cblu's avatar cblu

Removed workaround for: 3093170 - Handle clients receive data with length 0

	as it's now fixed.

        * Downloads.subproj/WebDownloadHandler.m:
        (-[WebDownloadHandler receivedData:]): remove workaround
        * WebView.subproj/WebMainResourceClient.m:
        (-[WebMainResourceClient handle:didReceiveData:]): added asserts


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2820 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent a310c37b
2002-11-21 Chris Blumenberg <cblu@apple.com>
Removed workaround for: 3093170 - Handle clients receive data with length 0
as it's now fixed.
* Downloads.subproj/WebDownloadHandler.m:
(-[WebDownloadHandler receivedData:]): remove workaround
* WebView.subproj/WebMainResourceClient.m:
(-[WebMainResourceClient handle:didReceiveData:]): added asserts
2002-11-21 Richard Williamson <rjw@apple.com>
A different fix to 3078065 that doesn't depend on the appkit's idea of
......
2002-11-21 Chris Blumenberg <cblu@apple.com>
Removed workaround for: 3093170 - Handle clients receive data with length 0
as it's now fixed.
* Downloads.subproj/WebDownloadHandler.m:
(-[WebDownloadHandler receivedData:]): remove workaround
* WebView.subproj/WebMainResourceClient.m:
(-[WebMainResourceClient handle:didReceiveData:]): added asserts
2002-11-21 Richard Williamson <rjw@apple.com>
A different fix to 3078065 that doesn't depend on the appkit's idea of
......
......@@ -307,11 +307,6 @@ - (WebError *)decodeData:(NSData *)data
- (WebError *)receivedData:(NSData *)data
{
ASSERT(data);
if ([data length] == 0) {
// Workaround for 3093170.
return nil;
}
return [self decodeData:[self dataIfDoneBufferingData:data]];
}
......
......@@ -307,11 +307,6 @@ - (WebError *)decodeData:(NSData *)data
- (WebError *)receivedData:(NSData *)data
{
ASSERT(data);
if ([data length] == 0) {
// Workaround for 3093170.
return nil;
}
return [self decodeData:[self dataIfDoneBufferingData:data]];
}
......
......@@ -256,8 +256,11 @@ -(void)handle:(WebResourceHandle *)h didReceiveResponse:(WebResourceResponse *)r
- (void)handle:(WebResourceHandle *)h didReceiveData:(NSData *)data
{
LOG(Loading, "URL = %@, data = %p, length %d", [dataSource URL], data, [data length]);
ASSERT(data);
ASSERT([data length] != 0);
LOG(Loading, "URL = %@, data = %p, length %d", [dataSource URL], data, [data length]);
if (downloadHandler) {
WebError *downloadError = [downloadHandler receivedData:data];
if (downloadError) {
......
......@@ -256,8 +256,11 @@ -(void)handle:(WebResourceHandle *)h didReceiveResponse:(WebResourceResponse *)r
- (void)handle:(WebResourceHandle *)h didReceiveData:(NSData *)data
{
LOG(Loading, "URL = %@, data = %p, length %d", [dataSource URL], data, [data length]);
ASSERT(data);
ASSERT([data length] != 0);
LOG(Loading, "URL = %@, data = %p, length %d", [dataSource URL], data, [data length]);
if (downloadHandler) {
WebError *downloadError = [downloadHandler receivedData:data];
if (downloadError) {
......
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