[epiphany] Fix missing pad lock after using reader mode



commit 2d2d66b88137e9f0159ce1ad44d21b3312ded4c8
Author: Jan-Michael Brummer <jan brummer tabos org>
Date:   Tue Aug 17 23:06:24 2021 +0200

    Fix missing pad lock after using reader mode
    
    Ensure that reader mode state is set before updating security tab information, otherwise
    pad lock will not be set as location entry still might think it is in reader mode.
    
    Fixes: https://gitlab.gnome.org/GNOME/epiphany/-/issues/1580
    Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1010>

 src/ephy-window.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index b74e98f31..8df7833dc 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -2435,6 +2435,11 @@ ephy_window_connect_active_embed (EphyWindow *window)
 
   ephy_embed_attach_notification_container (window->active_embed);
 
+  title_widget = ephy_header_bar_get_title_widget (EPHY_HEADER_BAR (window->header_bar));
+
+  if (EPHY_IS_LOCATION_ENTRY (title_widget))
+    ephy_location_entry_set_reader_mode_state (EPHY_LOCATION_ENTRY (title_widget), 
ephy_web_view_get_reader_mode_state (view));
+
   sync_tab_security (view, NULL, window);
   sync_tab_document_type (view, NULL, window);
   sync_tab_load_status (view, WEBKIT_LOAD_STARTED, window);
@@ -2448,8 +2453,6 @@ ephy_window_connect_active_embed (EphyWindow *window)
   sync_tab_zoom (web_view, NULL, window);
   sync_tab_page_action (view, NULL, window);
 
-  title_widget = ephy_header_bar_get_title_widget (EPHY_HEADER_BAR (window->header_bar));
-
   if (EPHY_IS_LOCATION_ENTRY (title_widget)) {
     gdouble progress = webkit_web_view_get_estimated_load_progress (web_view);
     gboolean loading = ephy_web_view_is_loading (EPHY_WEB_VIEW (web_view));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]