aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2012-10-16 02:23:49 +0800
committerXan Lopez <xan@igalia.com>2012-10-16 02:30:29 +0800
commit09c7c90335289f2943bbc4c1f34e217b20c41d40 (patch)
treec68f34d329115abe4e5d9490e5d7d2565425c180
parent0b5d0c5b3bccbd39cd4741eb28a3e6c27a8aaf14 (diff)
downloadgsoc2013-epiphany-09c7c90335289f2943bbc4c1f34e217b20c41d40.tar.gz
gsoc2013-epiphany-09c7c90335289f2943bbc4c1f34e217b20c41d40.tar.zst
gsoc2013-epiphany-09c7c90335289f2943bbc4c1f34e217b20c41d40.zip
ephy-web-view: remove handling of Content-Disposition 'attachment'
WebKit already does exactly the same thing automatically, no need to handle it here.
-rw-r--r--embed/ephy-web-view.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 453789ca1..9774f87ae 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -1852,31 +1852,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;