[epiphany/gnome-3-20] Do not show the lock icon in the location entry for about:blank pages
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/gnome-3-20] Do not show the lock icon in the location entry for about:blank pages
- Date: Sun, 18 Dec 2016 17:31:16 +0000 (UTC)
commit a28e92f4a54d0adb65839d29cb27c0d5ff36a866
Author: Carlos Garcia Campos <cgarcia igalia com>
Date: Wed Dec 7 15:43:00 2016 +0100
Do not show the lock icon in the location entry for about:blank pages
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 b2df785..50320b5 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -1458,7 +1458,9 @@ update_security_status_for_committed_load (EphyWebView *view,
g_clear_object (&view->certificate);
g_clear_pointer (&view->tls_error_failing_uri, g_free);
- if (!soup_uri || webkit_security_manager_uri_scheme_is_local (security_manager, soup_uri->scheme)) {
+ if (!soup_uri ||
+ webkit_security_manager_uri_scheme_is_local (security_manager, soup_uri->scheme) ||
+ webkit_security_manager_uri_scheme_is_empty_document (security_manager, soup_uri->scheme)) {
security_level = EPHY_SECURITY_LEVEL_LOCAL_PAGE;
} else if (webkit_web_view_get_tls_info (WEBKIT_WEB_VIEW (view), &view->certificate, &view->tls_errors)) {
g_object_ref (view->certificate);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]