aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-web-view.c
diff options
context:
space:
mode:
authorCarlos Garcia Campos <cgarcia@igalia.com>2013-02-20 01:44:20 +0800
committerCarlos Garcia Campos <carlosgc@gnome.org>2013-02-20 01:46:25 +0800
commit9b30a61181bf2c009e14941fd14ad551ca26f61e (patch)
tree629e6f8465c04009315c9dc2b466591aee367232 /embed/ephy-web-view.c
parent86615e3298fa53736a6a2b722be7d45ecffd36db (diff)
downloadgsoc2013-epiphany-9b30a61181bf2c009e14941fd14ad551ca26f61e.tar
gsoc2013-epiphany-9b30a61181bf2c009e14941fd14ad551ca26f61e.tar.gz
gsoc2013-epiphany-9b30a61181bf2c009e14941fd14ad551ca26f61e.tar.bz2
gsoc2013-epiphany-9b30a61181bf2c009e14941fd14ad551ca26f61e.tar.lz
gsoc2013-epiphany-9b30a61181bf2c009e14941fd14ad551ca26f61e.tar.xz
gsoc2013-epiphany-9b30a61181bf2c009e14941fd14ad551ca26f61e.tar.zst
gsoc2013-epiphany-9b30a61181bf2c009e14941fd14ad551ca26f61e.zip
ephy-web-view: Update to the latest WebKit2 API changes
Use webkit_web_view_get_tls_info() instead of webkit_uri_response_get_https_status() that has been recently removed from the WebKit2 GTK+ API.
Diffstat (limited to 'embed/ephy-web-view.c')
-rw-r--r--embed/ephy-web-view.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index eced9f1ad..08b292769 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -2072,18 +2072,14 @@ load_changed_cb (WebKitWebView *web_view,
case WEBKIT_LOAD_COMMITTED: {
const char* uri;
EphyWebViewSecurityLevel security_level = EPHY_WEB_VIEW_STATE_IS_UNKNOWN;
- WebKitWebResource *resource;
- WebKitURIResponse *response;
/* Title and location. */
uri = webkit_web_view_get_uri (web_view);
ephy_web_view_location_changed (view, uri);
/* Security status. */
- resource = webkit_web_view_get_main_resource (web_view);
- response = webkit_web_resource_get_response (resource);
g_clear_object (&priv->certificate);
- if (webkit_uri_response_get_https_status (response, &priv->certificate, &priv->tls_errors)) {
+ if (webkit_web_view_get_tls_info (web_view, &priv->certificate, &priv->tls_errors)) {
g_object_ref (priv->certificate);
security_level = priv->tls_errors == 0 ?
EPHY_WEB_VIEW_STATE_IS_SECURE_HIGH : EPHY_WEB_VIEW_STATE_IS_BROKEN;