eric6/WebBrowser/SiteInfo/SiteInfoWidget.py

changeset 7565
928373562e36
parent 7533
88261c96484b
child 7781
607a6098cb44
diff -r 0f25563f8ff4 -r 928373562e36 eric6/WebBrowser/SiteInfo/SiteInfoWidget.py
--- a/eric6/WebBrowser/SiteInfo/SiteInfoWidget.py	Sat May 02 14:04:18 2020 +0200
+++ b/eric6/WebBrowser/SiteInfo/SiteInfoWidget.py	Sat May 02 19:10:08 2020 +0200
@@ -59,10 +59,17 @@
         secureLabel.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Preferred)
         layout.addWidget(secureLabel, rows, 1)
         if url.scheme() in ["https"]:
-            secureLabel.setText(
-                self.tr("Your connection to this site is <b>secure</b>."))
-            secureIcon.setPixmap(
-                UI.PixmapCache.getPixmap("securityHigh"))
+            if WebBrowserWindow.networkManager().isInsecureHost(url.host()):
+                secureLabel.setText(
+                    self.tr("Your connection to this site "
+                            "<b>may not be secure</b>."))
+                secureIcon.setPixmap(
+                    UI.PixmapCache.getPixmap("securityMedium"))
+            else:
+                secureLabel.setText(
+                    self.tr("Your connection to this site is <b>secure</b>."))
+                secureIcon.setPixmap(
+                    UI.PixmapCache.getPixmap("securityHigh"))
         else:
             secureLabel.setText(
                 self.tr("Your connection to this site is <b>not secure</b>."))

eric ide

mercurial