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



commit ed62a829e8bfc285f4855fd854883bece3e940c4
Author: Michael Catanzaro <mcatanzaro redhat com>
Date:   Thu Dec 16 10:44:29 2021 -0600

    Disable reader mode
    
    It is unsafe, and too much effort to fix on old stable branches.

 embed/ephy-web-view.c | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index f31f5fdf7..026ad4ca3 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -670,6 +670,7 @@ _ephy_web_view_set_is_blank (EphyWebView *view,
   }
 }
 
+#if 0
 static
 char *readability_get_property_string (WebKitJavascriptResult *js_result,
                                        char                   *property)
@@ -740,6 +741,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,
@@ -1493,8 +1495,11 @@ load_changed_cb (WebKitWebView   *web_view,
       g_clear_handle_id (&view->reader_js_timeout, g_source_remove);
 
       view->reader_loading = FALSE;
+
+#if 0
       if (!view->reader_active)
         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]