[epiphany/gnome-40] Fix missing pad lock after using reader mode
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/gnome-40] Fix missing pad lock after using reader mode
- Date: Thu, 2 Sep 2021 17:38:23 +0000 (UTC)
commit 31c5843a4da4426105cecd98ecbb39c353cbd6c0
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>
(cherry picked from commit 2d2d66b88137e9f0159ce1ad44d21b3312ded4c8)
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 6db530ec8..2e57be2d2 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -2422,6 +2422,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);
@@ -2435,8 +2440,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]