Don't manually start download from request
See: https://bugs.launchpad.net/midori/+bug/973646
This commit is contained in:
parent
d2059fcec1
commit
6cbf8031bf
2 changed files with 0 additions and 5 deletions
|
@ -1465,7 +1465,6 @@ midori_view_download_requested_cb (GtkWidget* view,
|
||||||
midori_browser_prepare_download (browser, download, destination_uri);
|
midori_browser_prepare_download (browser, download, destination_uri);
|
||||||
g_signal_connect (download, "notify::status",
|
g_signal_connect (download, "notify::status",
|
||||||
G_CALLBACK (midori_browser_download_status_cb), GTK_WIDGET (browser));
|
G_CALLBACK (midori_browser_download_status_cb), GTK_WIDGET (browser));
|
||||||
webkit_download_start (download);
|
|
||||||
g_free (destination_uri);
|
g_free (destination_uri);
|
||||||
}
|
}
|
||||||
else if (!webkit_download_get_destination_uri (download))
|
else if (!webkit_download_get_destination_uri (download))
|
||||||
|
|
|
@ -2971,10 +2971,6 @@ webkit_web_view_mime_type_decision_cb (GtkWidget* web_view,
|
||||||
default:
|
default:
|
||||||
g_warn_if_reached ();
|
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;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue