[epiphany/gnome-3-22] 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-22] Do not show the lock icon in the location entry for about:blank pages
- Date: Wed, 7 Dec 2016 23:30:11 +0000 (UTC)
commit 67e940a747550648e64acc3ca6bc3e6efb194e01
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 05fa898..479a7a8 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -1497,7 +1497,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]