diff options
author | Xan Lopez <xan@igalia.com> | 2012-10-16 02:23:49 +0800 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2012-10-16 02:23:49 +0800 |
commit | 79d61564bd8e122dfd5ee80ce37672f6d437efff (patch) | |
tree | a957837b51febd2de550368a6b9eaa6b054e8f55 /embed | |
parent | b4c01beb8149e74226affdc0c01999e61ab04664 (diff) | |
download | gsoc2013-epiphany-79d61564bd8e122dfd5ee80ce37672f6d437efff.tar gsoc2013-epiphany-79d61564bd8e122dfd5ee80ce37672f6d437efff.tar.gz gsoc2013-epiphany-79d61564bd8e122dfd5ee80ce37672f6d437efff.tar.bz2 gsoc2013-epiphany-79d61564bd8e122dfd5ee80ce37672f6d437efff.tar.lz gsoc2013-epiphany-79d61564bd8e122dfd5ee80ce37672f6d437efff.tar.xz gsoc2013-epiphany-79d61564bd8e122dfd5ee80ce37672f6d437efff.tar.zst gsoc2013-epiphany-79d61564bd8e122dfd5ee80ce37672f6d437efff.zip |
ephy-web-view: remove handling of Content-Disposition 'attachment'
WebKit already does exactly the same thing automatically, no need to
handle it here.
Diffstat (limited to 'embed')
-rw-r--r-- | embed/ephy-web-view.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c index 0d44ea9a8..4f6a7d24e 100644 --- a/embed/ephy-web-view.c +++ b/embed/ephy-web-view.c @@ -1853,31 +1853,6 @@ mime_type_policy_decision_requested_cb (WebKitWebView *web_view, process */ should_download = !webkit_web_view_can_show_mime_type (web_view, mime_type); - /* Make sure we respect the Content-Disposition header */ - if (!should_download) { - WebKitNetworkResponse *response = webkit_web_frame_get_network_response (frame); - SoupMessage *message = NULL; - - if (response) { - message = webkit_network_response_get_message (response); - } - - if (message) { - char *disposition = NULL; - - soup_message_headers_get_content_disposition (message->response_headers, - &disposition, - NULL); - - if (disposition) { - should_download = g_str_equal (disposition, "attachment"); - g_free (disposition); - } - } - - g_object_unref (response); - } - /* FIXME: need to use ephy_file_check_mime if auto-downloading */ if (should_download) { GObject *single; |