[epiphany/gnome-3-18] window: Pass address from embed to security popover
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/gnome-3-18] window: Pass address from embed to security popover
- Date: Tue, 5 Sep 2017 19:11:31 +0000 (UTC)
commit 3e38ef29c5fbbaccc1bda7c10c793b3c8c05af7b
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Mon Jul 24 15:50:14 2017 -0500
window: Pass address from embed to security popover
It's wrong to try to use the address from the title widget here, because
the user could edit it to say whatever he wants, and it will crash if
there is no text in the location entry. Instead, get the address from
the web view.
https://bugzilla.gnome.org/show_bug.cgi?id=785338
src/ephy-window.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index c7293aa..f65cedf 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -3288,15 +3288,13 @@ open_certificate_popover (EphyWindow *window,
GTlsCertificate *certificate;
GTlsCertificateFlags tls_errors;
EphySecurityLevel security_level;
- GtkWidget *location_entry;
GtkWidget *certificate_popover;
view = ephy_embed_get_web_view (priv->active_embed);
ephy_web_view_get_security_level (view, &security_level, &certificate, &tls_errors);
- location_entry = ephy_toolbar_get_location_entry (EPHY_TOOLBAR (priv->toolbar));
certificate_popover = ephy_certificate_popover_new (relative_to,
- ephy_location_entry_get_location
(EPHY_LOCATION_ENTRY (location_entry)),
+ ephy_web_view_get_address (view),
certificate,
tls_errors,
security_level);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]