Skip to content
  • cblu's avatar
    WebFoundation: · bd135e16
    cblu authored
    	Fix for checking and creating proper download filenames.
    
            Reviewed by mjs, kocienda, trey.
    
            * CacheLoader.subproj/WebResourceResponse.h:
            * CacheLoader.subproj/WebResourceResponse.m: removed the filename method. That is now a category in WebKit
            * CacheLoader.subproj/WebResourceResponsePrivate.h:
            * Misc.subproj/WebNSStringExtras.h:
            * Misc.subproj/WebNSStringExtras.m:
            (-[NSString _web_filenameByFixingIllegalCharacters]): new, turns "/" into "-", strips leading dots
            * ProtocolHandlers.subproj/WebHTTPProtocolHandler.m:
            (-[WebHTTPProtocolHandler setResponseMetadata:]): don't parse out the content disposition. This is done in WebKit.
    
    WebKit:
    
    	Fix for checking and creating proper download filenames.
    
            Reviewed by mjs, kocienda, trey.
    
            * WebKit.pbproj/project.pbxproj:
            * WebView.subproj/WebControllerPolicyDelegate.h: changes for renamed savePathForResponse:andRequest: method
            * WebView.subproj/WebDefaultPolicyDelegate.m: changes for renamed savePathForResponse:andRequest: method
            (-[WebDefaultPolicyDelegate savePathForResponse:andRequest:]): renamed
            * WebView.subproj/WebMainResourceClient.m:
            (-[WebMainResourceClient continueAfterContentPolicy:response:]): changes for renamed savePathForResponse:andRequest: method
    
    WebBrowser:
    
    	Fix for checking and creating proper download filenames.
    
            Reviewed by mjs, kocienda, trey.
    
            * BrowserDocument.m:
            (-[BrowserDocument pageName]): call _web_filenameByFixingIllegalCharacters on the web page title when saving the document
            * BrowserWebController.m:
            (-[BrowserWebController savePathForResponse:andRequest:]): renamed, removed temporary that checks for invalid filename. That work is done in WebKit.
            * HTMLSourceDocument.m:
            (-[HTMLSourceDocument displayName]): call suggestedFilenameForSaving
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3316 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    bd135e16