-
mary.wu@torchmobile.com.cn authored
https://bugs.webkit.org/show_bug.cgi?id=85044 Reviewed by Antonio Gomes. Source/WebCore: Pass download attribute filename to networkJob and it could be overridden by the Content-Disposition HTTP header's filename parameter. * platform/network/blackberry/NetworkJob.cpp: (WebCore::NetworkJob::initialize): * platform/network/blackberry/ResourceRequest.h: (WebCore::ResourceRequest::setSuggestSaveName): (WebCore::ResourceRequest::suggestSaveName): (ResourceRequest): * platform/network/blackberry/ResourceRequestBlackBerry.cpp: (WebCore::ResourceRequest::initializePlatformRequest): Source/WebKit/blackberry: If a link has download attribute, we should pass that value and be able to save file with the name according to HTML5: http://updates.html5rocks.com/2011/08/Downloading-resources-in-HTML5-a-download * Api/WebPage.cpp: (BlackBerry::WebKit::WebPagePrivate::load): (BlackBerry::WebKit::WebPage::download): * Api/WebPage_p.h: (WebPagePrivate): * WebCoreSupport/FrameLoaderClientBlackBerry.cpp: (WebCore::FrameLoaderClientBlackBerry::startDownload): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@116265 268f45cc-cd09-0410-ab3c-d52691b4dbfc
c216b0d1