[epiphany] ephy-web-view: do not replace broken lock with mixed content warning



commit e91d30c7817cce68882eedb12d9027d274448616
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Fri Aug 15 10:57:47 2014 -0500

    ephy-web-view: do not replace broken lock with mixed content warning
    
    The mixed content warning is only intended to be displayed on sites with
    a secure primary connection. It's not relevant if the site is untrusted.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=734867

 embed/ephy-web-view.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index b2c6e88..fc9d78c 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -2046,8 +2046,10 @@ mixed_content_detected_cb (WebKitWebView *web_view,
                            gpointer user_data)
 {
   EphyWebView *view = EPHY_WEB_VIEW (web_view);
+  EphyWebViewPrivate *priv = view->priv;
 
-  ephy_web_view_set_security_level (view, EPHY_SECURITY_LEVEL_MIXED_CONTENT);
+  if (priv->security_level != EPHY_SECURITY_LEVEL_BROKEN_SECURITY)
+    ephy_web_view_set_security_level (view, EPHY_SECURITY_LEVEL_MIXED_CONTENT);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]