RESOLVED FIXED 29044
[GTK] Should update suggested-filename when the response is received
https://bugs.webkit.org/show_bug.cgi?id=29044
Summary [GTK] Should update suggested-filename when the response is received
Gustavo Noronha (kov)
Reported 2009-09-08 12:20:11 PDT
When the WebKitDownload object is created with a live Handle, it also has a ResourceResponse object containing the suggested filename. For cases where download is started from scratch, even after the response is received the WebKitDownload's object notion of the suggested filename is not updated.
Attachments
proposed solution (2.49 KB, patch)
2009-09-08 12:23 PDT, Gustavo Noronha (kov)
xan.lopez: review+
gustavo: commit-queue-
Gustavo Noronha (kov)
Comment 1 2009-09-08 12:23:13 PDT
Created attachment 39203 [details] proposed solution
Gustavo Noronha (kov)
Comment 2 2009-09-08 13:03:18 PDT
Will also add this, actually: diff --git a/WebKit/gtk/webkit/webkitwebview.cpp b/WebKit/gtk/webkit/webkitwebview.cpp index 3d24598..617ce0b 100644 --- a/WebKit/gtk/webkit/webkitwebview.cpp +++ b/WebKit/gtk/webkit/webkitwebview.cpp @@ -2587,9 +2587,6 @@ void webkit_web_view_request_download(WebKitWebView* webView, WebKitNetworkReque else download = webkit_download_new(request); - if (!response.isNull() && !response.suggestedFilename().isEmpty()) - webkit_download_set_suggested_filename(download, response.suggestedFilename().utf8().data()); - gboolean handled; g_signal_emit(webView, webkit_web_view_signals[DOWNLOAD_REQUESTED], 0, download, &handled);
Xan Lopez
Comment 3 2009-09-08 13:04:44 PDT
Comment on attachment 39203 [details] proposed solution r=me with the change in the comment.
Gustavo Noronha (kov)
Comment 4 2009-09-08 14:02:40 PDT
Landed as r48183.
Note You need to log in before you can comment on or make changes to this bug.