[epiphany] ephy-web-view.c: do not duplicate the logic to figure out if a page is secure
- From: Xan Lopez <xan src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-web-view.c: do not duplicate the logic to figure out if a page is secure
- Date: Thu, 27 Aug 2009 10:12:20 +0000 (UTC)
commit c6fc9cc5caa9e1b507f6e1a3770da24f6d6f968f
Author: Xan Lopez <xan gnome org>
Date: Thu Aug 27 13:06:52 2009 +0300
ephy-web-view.c: do not duplicate the logic to figure out if a page is secure
Just return the status we set when loading.
embed/ephy-web-view.c | 14 ++++----------
1 files changed, 4 insertions(+), 10 deletions(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 22f579a..1e1ce18 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -2000,16 +2000,10 @@ ephy_web_view_get_security_level (EphyWebView *view,
EphyWebViewSecurityLevel *level,
char **description)
{
- if (level) {
- const gchar *uri = ephy_web_view_get_address (view);
+ g_return_if_fail (EPHY_IS_WEB_VIEW (view));
- /* FIXME: as a temporary workaround, determine security level
- based on the existence of a 'https' prefix for the URI */
- if (uri && g_str_has_prefix(uri, "https"))
- *level = EPHY_WEB_VIEW_STATE_IS_SECURE_HIGH;
- else
- *level = EPHY_WEB_VIEW_STATE_IS_UNKNOWN;
- }
+ if (level)
+ *level = view->priv->security_level;
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]