From 6cbf8031bfbec67437040d42ac9d2befbd438a57 Mon Sep 17 00:00:00 2001 From: Martin Natano Date: Mon, 16 Apr 2012 19:41:41 +0200 Subject: [PATCH] Don't manually start download from request See: https://bugs.launchpad.net/midori/+bug/973646 --- midori/midori-browser.c | 1 - midori/midori-view.c | 4 ---- 2 files changed, 5 deletions(-) diff --git a/midori/midori-browser.c b/midori/midori-browser.c index 08679735..6d052f68 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -1465,7 +1465,6 @@ midori_view_download_requested_cb (GtkWidget* view, midori_browser_prepare_download (browser, download, destination_uri); g_signal_connect (download, "notify::status", G_CALLBACK (midori_browser_download_status_cb), GTK_WIDGET (browser)); - webkit_download_start (download); g_free (destination_uri); } else if (!webkit_download_get_destination_uri (download)) diff --git a/midori/midori-view.c b/midori/midori-view.c index 2a6580e4..c19ee024 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -2971,10 +2971,6 @@ webkit_web_view_mime_type_decision_cb (GtkWidget* web_view, default: g_warn_if_reached (); } - - /* Apparently WebKit will continue loading which ends in an error. - It's unclear whether it's a bug or we are doing something wrong. */ - webkit_web_view_stop_loading (WEBKIT_WEB_VIEW (view->web_view)); return TRUE; }