aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-web-view.c
diff options
context:
space:
mode:
authorXan Lopez <xan@gnome.org>2009-08-27 18:06:52 +0800
committerXan Lopez <xan@gnome.org>2009-08-27 18:11:15 +0800
commitc6fc9cc5caa9e1b507f6e1a3770da24f6d6f968f (patch)
treeffda6bd5d95db2d4aa4184741081736a3a30d853 /embed/ephy-web-view.c
parentcc64c681766a798bbcfa6e16e9723713ff0dc2c1 (diff)
downloadgsoc2013-epiphany-c6fc9cc5caa9e1b507f6e1a3770da24f6d6f968f.tar
gsoc2013-epiphany-c6fc9cc5caa9e1b507f6e1a3770da24f6d6f968f.tar.gz
gsoc2013-epiphany-c6fc9cc5caa9e1b507f6e1a3770da24f6d6f968f.tar.bz2
gsoc2013-epiphany-c6fc9cc5caa9e1b507f6e1a3770da24f6d6f968f.tar.lz
gsoc2013-epiphany-c6fc9cc5caa9e1b507f6e1a3770da24f6d6f968f.tar.xz
gsoc2013-epiphany-c6fc9cc5caa9e1b507f6e1a3770da24f6d6f968f.tar.zst
gsoc2013-epiphany-c6fc9cc5caa9e1b507f6e1a3770da24f6d6f968f.zip
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.
Diffstat (limited to 'embed/ephy-web-view.c')
-rw-r--r--embed/ephy-web-view.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 22f579a26..1e1ce1864 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;
}
/**