[epiphany] Do not show the lock icon in the location entry for about:blank pages
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Do not show the lock icon in the location entry for about:blank pages
- Date: Wed, 7 Dec 2016 14:44:49 +0000 (UTC)
commit f6d97372ffff1e5ef504f89a6f4716f7c5cd6ceb
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 | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index d91a8b2..22d2359 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -1604,7 +1604,8 @@ update_security_status_for_committed_load (EphyWebView *view,
if (!soup_uri ||
strcmp (soup_uri_get_scheme (soup_uri), EPHY_VIEW_SOURCE_SCHEME) == 0 ||
- webkit_security_manager_uri_scheme_is_local (security_manager, soup_uri->scheme)) {
+ 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]