epiphany r8908 - trunk/embed/webkit
- From: xan svn gnome org
- To: svn-commits-list gnome org
- Subject: epiphany r8908 - trunk/embed/webkit
- Date: Mon, 16 Mar 2009 08:03:31 +0000 (UTC)
Author: xan
Date: Mon Mar 16 08:03:30 2009
New Revision: 8908
URL: http://svn.gnome.org/viewvc/epiphany?rev=8908&view=rev
Log:
webkit-embed: re-add support for click-to-download.
Modified:
trunk/embed/webkit/webkit-embed.c
Modified: trunk/embed/webkit/webkit-embed.c
==============================================================================
--- trunk/embed/webkit/webkit-embed.c (original)
+++ trunk/embed/webkit/webkit-embed.c Mon Mar 16 08:03:30 2009
@@ -394,6 +394,14 @@
*/
g_signal_emit_by_name (embed, "ge-document-type", type);
+ /* If WebKit can't handle the mime type start the download
+ process */
+ /* FIXME: need to use ephy_file_check_mime if auto-downloading */
+ if (!webkit_web_view_can_show_mime_type (web_view, mime_type)) {
+ webkit_web_policy_decision_download (decision);
+ return TRUE;
+ }
+
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]