[epiphany] ephy-web-view: remove handling of Content-Disposition 'attachment'
- From: Xan Lopez <xan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-web-view: remove handling of Content-Disposition 'attachment'
- Date: Mon, 15 Oct 2012 18:28:14 +0000 (UTC)
commit 79d61564bd8e122dfd5ee80ce37672f6d437efff
Author: Xan Lopez <xan igalia com>
Date: Mon Oct 15 20:23:49 2012 +0200
ephy-web-view: remove handling of Content-Disposition 'attachment'
WebKit already does exactly the same thing automatically, no need to
handle it here.
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 0d44ea9..4f6a7d2 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]