]> spindle.queued.net Git - midori/commitdiff
Don't manually start download from request
authorMartin Natano <natano@natano.net>
Mon, 16 Apr 2012 17:41:41 +0000 (19:41 +0200)
committerChristian Dywan <christian@twotoasts.de>
Mon, 16 Apr 2012 17:41:41 +0000 (19:41 +0200)
See: https://bugs.launchpad.net/midori/+bug/973646

midori/midori-browser.c
midori/midori-view.c

index 08679735bef714c1615679a71714c8fbb94a0a1d..6d052f68adafe37795d9c760974fb0722414a9c0 100644 (file)
@@ -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))
index 2a6580e4eb818a0b3e6023fba297390e9d88cc94..c19ee024bd2cadabed5fd1d747c30fd0a170c773 100644 (file)
@@ -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;
 }