Title: [152229] trunk/Source/WebKit/win
- Revision
- 152229
- Author
- [email protected]
- Date
- 2013-07-01 09:47:45 -0700 (Mon, 01 Jul 2013)
Log Message
[Curl] WebDownload init method is not implemented.
https://bugs.webkit.org/show_bug.cgi?id=118241
Patch by [email protected] <[email protected]> on 2013-07-01
Reviewed by Brent Fulgham.
The WebDownload::init() method called when a normal load is changed to a download
because of a decision by the policy delegate, is not implemented for Curl.
* WebDownloadCurl.cpp:
(WebDownload::init): Implement init() method.
Modified Paths
Diff
Modified: trunk/Source/WebKit/win/ChangeLog (152228 => 152229)
--- trunk/Source/WebKit/win/ChangeLog 2013-07-01 16:38:05 UTC (rev 152228)
+++ trunk/Source/WebKit/win/ChangeLog 2013-07-01 16:47:45 UTC (rev 152229)
@@ -1,3 +1,16 @@
+2013-07-01 [email protected] <[email protected]>
+
+ [Curl] WebDownload init method is not implemented.
+ https://bugs.webkit.org/show_bug.cgi?id=118241
+
+ Reviewed by Brent Fulgham.
+
+ The WebDownload::init() method called when a normal load is changed to a download
+ because of a decision by the policy delegate, is not implemented for Curl.
+
+ * WebDownloadCurl.cpp:
+ (WebDownload::init): Implement init() method.
+
2013-07-01 Kangil Han <[email protected]>
Adopt toHTMLTextAreaElement for code cleanup
Modified: trunk/Source/WebKit/win/WebDownloadCurl.cpp (152228 => 152229)
--- trunk/Source/WebKit/win/WebDownloadCurl.cpp 2013-07-01 16:38:05 UTC (rev 152228)
+++ trunk/Source/WebKit/win/WebDownloadCurl.cpp 2013-07-01 16:47:45 UTC (rev 152229)
@@ -57,7 +57,21 @@
void WebDownload::init(ResourceHandle* handle, const ResourceRequest& request, const ResourceResponse& response, IWebDownloadDelegate* delegate)
{
- notImplemented();
+ if (!handle)
+ return;
+
+ // Stop previous request
+ handle->setDefersLoading(true);
+
+ m_request.adoptRef(WebMutableURLRequest::createInstance(request));
+
+ m_delegate = delegate;
+
+ KURL url(ParsedURLString, request.url());
+
+ m_download.init(this, url);
+
+ start();
}
void WebDownload::init(const KURL& url, IWebDownloadDelegate* delegate)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes