-
cblu authored
Fixed: 3143656 - crash in MIMETypeForFile when a large QT movie is dragged over window Removed all unnecessary content sniffing as that work is already done in WebResourceLoad. Reviewed by darin. * CacheLoader.subproj/WebResourceLoad.m: (-[WebResourceLoad _sendResponseMetadataCallbackCheckingPreconditions:]): only sniff here, call _web_guessedMIMEType * Misc.subproj/WebMultipartForm.m: include WebNSDataExtras * Misc.subproj/WebNSDataExtras.h: Added. * Misc.subproj/WebNSDataExtras.m: Added. (-[NSMutableData _web_appendFormat:]): (-[NSMutableData _web_appendEncodedString:format:arguments:]): (-[NSMutableData _web_appendEncodedString:format:]): (-[NSData _web_guessedMIMEType]): was _guessMIMEType in WebResourceLoad * Misc.subproj/WebNSMutableDataExtras.h: Removed. * Misc.subproj/WebNSMutableDataExtras.m: Removed. * Misc.subproj/WebNSStringExtras.h: removed 2 unneeded methods * Misc.subproj/WebNSStringExtras.m: * ProtocolHandlers.subproj/WebFileProtocolHandler.m: (-[WebFileProtocolHandler didLoadData:]): get the MIME type from the extension, don't sniff * ProtocolHandlers.subproj/WebSimpleHTTPProtocolHandler.m: (-[WebSimpleHTTPProtocolHandler _extractResponseStatusLineFromBytes:length:]): don't sniff * WebFoundation.pbproj/project.pbxproj: WebKit: Fixed: 3143656 - crash in MIMETypeForFile when a large QT movie is dragged over window Reviewed by darin. * WebView.subproj/WebControllerPrivate.m: (+[WebController _MIMETypeForFile:]): rewrote, now calls _web_guessedMIMEType git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3349 268f45cc-cd09-0410-ab3c-d52691b4dbfc
d3ed1c91