[epiphany] ephy-web-view: Take a reference of the certificate returned by the response
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-web-view: Take a reference of the certificate returned by the response
- Date: Tue, 21 Aug 2012 12:46:24 +0000 (UTC)
commit eab8da2259d5a79d5e892cda83a28cdaef762471
Author: Carlos Garcia Campos <cgarcia igalia com>
Date: Tue Aug 21 14:34:15 2012 +0200
ephy-web-view: Take a reference of the certificate returned by the response
embed/ephy-web-view.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 12e5f51..4862d83 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -2143,6 +2143,7 @@ load_changed_cb (WebKitWebView *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)) {
+ g_object_ref (priv->certificate);
security_level = priv->tls_errors == 0 ?
EPHY_WEB_VIEW_STATE_IS_SECURE_HIGH : EPHY_WEB_VIEW_STATE_IS_BROKEN;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]