[epiphany] ephy-web-view: Use new API in WebKitResponsePolicyDecision to check if mime type is supported
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-web-view: Use new API in WebKitResponsePolicyDecision to check if mime type is supported
- Date: Mon, 13 Jan 2014 16:49:57 +0000 (UTC)
commit c3928d4a4c1e0c69c01d5c62e6d0217d8fe9f7fc
Author: Carlos Garcia Campos <cgarcia igalia com>
Date: Mon Jan 13 17:44:46 2014 +0100
ephy-web-view: Use new API in WebKitResponsePolicyDecision to check if mime type is supported
To decide whether to start a download or not. This method is a lot more
efficient, because it doesn't require to send a message to the web
process like webkit_web_view_can_show_mime_type() does.
configure.ac | 2 +-
embed/ephy-web-view.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index fa15973..687f8ab 100644
--- a/configure.ac
+++ b/configure.ac
@@ -69,7 +69,7 @@ GLIB_REQUIRED=2.35.6
GTK_REQUIRED=3.11.4
LIBXML_REQUIRED=2.6.12
LIBXSLT_REQUIRED=1.1.7
-WEBKIT_GTK_REQUIRED=2.2.2
+WEBKIT_GTK_REQUIRED=2.3.4
LIBSOUP_REQUIRED=2.42.1
GNOME_DESKTOP_REQUIRED=2.91.2
LIBSECRET_REQUIRED=0.14
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 0215727..597a27e 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -1329,7 +1329,7 @@ decide_policy_cb (WebKitWebView *web_view,
/* If WebKit can't handle the mime type start the download
process */
- if (webkit_web_view_can_show_mime_type (web_view, mime_type))
+ if (webkit_response_policy_decision_is_mime_type_supported (response_decision))
return FALSE;
request = webkit_response_policy_decision_get_request (response_decision);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]