Commit a15075e3 authored by darin's avatar darin

Reviewed by Dave.

        * Plugins.subproj/WebBaseNetscapePluginStream.m:
        (-[WebBaseNetscapePluginStream finishedLoadingWithData:]):
	Fixed uninitialized variable warning so builds work again.

        * WebView.subproj/WebDataSourcePrivate.m: (+[WebDataSource _repTypes]): Added "application/xml".
        * WebView.subproj/WebViewPrivate.m: (+[WebView _viewTypes]): Added "application/xml".

	* English.lproj/Localizable.strings: Regenerated.
	* English.lproj/StringsNotToBeLocalized.txt: Updated for above change.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3323 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent bcb09ec8
2003-01-14 Darin Adler <darin@apple.com>
Reviewed by Dave.
* Plugins.subproj/WebBaseNetscapePluginStream.m:
(-[WebBaseNetscapePluginStream finishedLoadingWithData:]):
Fixed uninitialized variable warning so builds work again.
* WebView.subproj/WebDataSourcePrivate.m: (+[WebDataSource _repTypes]): Added "application/xml".
* WebView.subproj/WebViewPrivate.m: (+[WebView _viewTypes]): Added "application/xml".
* English.lproj/Localizable.strings: Regenerated.
* English.lproj/StringsNotToBeLocalized.txt: Updated for above change.
2003-01-13 Darin Adler <darin@apple.com>
Reviewed by Trey, John, and Maciej, and given the seal of approval by Don.
......
......@@ -38,6 +38,7 @@
"Apple Chancery"
"AppleFontSmoothing"
"BufferTextDrawing"
"Content-Disposition"
"Courier"
"DOCBASE"
"DirectionAL"
......@@ -214,6 +215,7 @@
"application/x-java-applet"
"application/x-javascript"
"application/xhtml+xml"
"application/xml"
"audio/mp4"
"com.apple.WebKit"
"displayTitle"
......
......@@ -151,15 +151,15 @@ - (void)finishedLoadingWithData:(NSData *)data
}
int dataLength = [data length];
int byteCount = write(fd, [data bytes], dataLength);
int writeError = errno;
close(fd);
if (byteCount != dataLength) {
// This happens only rarely, when we are out of disk space or have a disk I/O error.
ERROR("error writing to temporary file, errno %d", writeError);
ERROR("error writing to temporary file, errno %d", errno);
close(fd);
// This is not a network error, but the only error codes are "network error" and "user break".
[self destroyStreamWithReason:NPRES_NETWORK_ERR];
return;
}
close(fd);
NSString *carbonPath = [[NSFileManager defaultManager] _web_carbonPathForPath:[NSString stringWithCString:path]];
NPP_StreamAsFile(instance, &stream, [carbonPath cString]);
......
......@@ -424,6 +424,7 @@ + (NSMutableDictionary *)_repTypes
repTypes = [[NSMutableDictionary alloc] initWithObjectsAndKeys:
[WebHTMLRepresentation class], @"text/html",
[WebHTMLRepresentation class], @"text/xml",
[WebHTMLRepresentation class], @"application/xml",
[WebHTMLRepresentation class], @"application/xhtml+xml",
[WebTextRepresentation class], @"text/",
[WebTextRepresentation class], @"application/x-javascript",
......
......@@ -244,6 +244,7 @@ + (NSMutableDictionary *)_viewTypes
viewTypes = [[NSMutableDictionary alloc] initWithObjectsAndKeys:
[WebHTMLView class], @"text/html",
[WebHTMLView class], @"text/xml",
[WebHTMLView class], @"application/xml",
[WebHTMLView class], @"application/xhtml+xml",
[WebTextView class], @"text/",
[WebTextView class], @"application/x-javascript",
......
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