[epiphany/gnome-3-38] Disable reader mode



commit ee245c436bb640d1c2547c57d57ace1bdac98a81
Author: Michael Catanzaro <mcatanzaro redhat com>
Date:   Thu Dec 16 10:40:02 2021 -0600

    Disable reader mode
    
    It is unsafe, and too hard to fix to backport to older branches

 embed/ephy-web-view.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index e5206aec3..4d9f48e93 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -677,6 +677,7 @@ _ephy_web_view_set_is_blank (EphyWebView *view,
   }
 }
 
+#if 0
 static void
 readability_js_finish_cb (GObject      *object,
                           GAsyncResult *result,
@@ -721,6 +722,7 @@ run_readability_js_if_needed (gpointer data)
   web_view->reader_js_timeout = 0;
   return G_SOURCE_REMOVE;
 }
+#endif
 
 static void
 title_changed_cb (WebKitWebView *web_view,
@@ -1620,8 +1622,10 @@ load_changed_cb (WebKitWebView   *web_view,
 
       g_clear_handle_id (&view->reader_js_timeout, g_source_remove);
 
+#if 0
       if (!ephy_embed_utils_is_no_show_address (view->address))
         view->reader_js_timeout = g_idle_add (run_readability_js_if_needed, web_view);
+#endif
 
       break;
 


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