[epiphany] window: Pass address from embed to security popover



commit 60da25c63af3ce1d2e2774245ada4da15fb10d1c
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 566040b..46511a3 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -2854,7 +2854,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]