Skip to content
  • kocienda's avatar
    WebCore: · 11bb1581
    kocienda authored
            Reviewed by Gramps and Richard.
    
    	Fix for this bug:
    
    	Radar 3112233 (400 response when attaching files at mail.yahoo.com)
    
    	KHTML multipart form code called into KMimeType class to determine
    	the mime type for file attachments, however, our implementation of
    	KMimeType has only stubs which call ERROR.
    
    	I added some code into KWQKHTMLPart and WebCoreBridge so that the
    	code in html_formimpl can call through to the WebFoundation mime
    	file map we maintain.
    
            * khtml/html/html_formimpl.cpp:
            (HTMLFormElementImpl::formData)
            * kwq/KWQKHTMLPart.h:
            * kwq/KWQKHTMLPart.mm:
            (KWQKHTMLPart::mimeTypeForFileName)
            * kwq/WebCoreBridge.h:
    
    WebKit:
    
             Reviewed by Gramps and Richard
    
             Fix for this bug:
    
             Radar 3112233 (400 response when attaching files at mail.yahoo.com)
    
             I added the MIMETypeForPath method which accesses the WebFoundation mime
             file map we maintain. KHTML can now access this map by using the bridge.
    
             * WebCoreSupport.subproj/WebBridge.m:
             (-[WebBridge MIMETypeForPath:])
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3195 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    11bb1581