[epiphany/gnome-3-24] window: Pass address from embed to security popover



commit aea6232c3c90e6cb0aff71f4adca50775459faa3
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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 9e61ce2..cf9b2ef 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -2914,7 +2914,7 @@ title_widget_lock_clicked_cb (EphyTitleWidget *title_widget,
   ephy_web_view_get_security_level (view, &security_level, &certificate, &tls_errors);
 
   security_popover = ephy_security_popover_new (GTK_WIDGET (title_widget),
-                                                ephy_title_widget_get_address (title_widget),
+                                                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]