Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
path: root/webactivity.py
diff options
authorManuel Quiñones <manuq@laptop.org>2012-11-28 14:53:59 (GMT)
committer Manuel Quiñones <manuq@laptop.org>2012-11-29 11:44:08 (GMT)
commitdcb5f998b24f359d7c3e1980da3c58b6f6e2331a (patch)
treeca0910a3870cf42430b6551067789b307f379c19 /webactivity.py
parentee7b2113802f313549622e2af014c78ba42df356 (diff)
Display security as a lock icon for secured pages - SL #4245
For pages using the https protocol, display a) a lock icon if there were no errors in the certification, or b) a broken lock icon if the certification failed. Use the same logic as Epiphany: http://git.gnome.org/browse/epiphany/tree/embed/ephy-web-view.c#n2321 Signed-off-by: Manuel Quiñones <manuq@laptop.org> Acked-by: Manuel Kaufmann <humitos@gmail.com>
Diffstat (limited to 'webactivity.py')
1 files changed, 2 insertions, 0 deletions
diff --git a/webactivity.py b/webactivity.py
index 0e3b61b..3c0d337 100644
--- a/webactivity.py
+++ b/webactivity.py
@@ -156,6 +156,8 @@ class WebActivity(activity.Activity):
session = WebKit.get_default_session()
session.set_property('accept-language-auto', True)
+ session.set_property('ssl-use-system-ca-file', True)
+ session.set_property('ssl-strict', False)
# By default, cookies are not stored persistently, we have to
# add a cookie jar so that they get saved to disk. We use one