summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Catanzaro <mcatanzaro@igalia.com>2018-10-10 09:16:08 -0500
committerMichael Catanzaro <mcatanzaro@igalia.com>2018-10-10 09:17:09 -0500
commit6cf73b8be6fc50cb4c603dd3305d01d9f7dbd618 (patch)
tree79e960f40db695d31a1d7097a5ac5f43dfe409b2
parentb2a882440d70d419a2abaa73b9284662c67a3c07 (diff)
downloadepiphany-6cf73b8be6fc50cb4c603dd3305d01d9f7dbd618.tar.gz
web-view: Ensure reader_js_timeout is not left "dangling"
Dangling isn't quite the right word, since it's not a pointer, but conceptually a source ID pointing to a source that no longer exists is the same style bug.
-rw-r--r--embed/ephy-web-view.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 3ffb61e83..f18b8acf0 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -999,7 +999,6 @@ run_readability_js_if_needed (gpointer data)
/* Internal pages should never receive reader mode. */
if (!ephy_embed_utils_is_no_show_address (web_view->address)) {
- web_view->reader_js_timeout = 0;
webkit_web_view_run_javascript_from_gresource (WEBKIT_WEB_VIEW (web_view),
"/org/gnome/epiphany/readability.js",
NULL,
@@ -1007,6 +1006,7 @@ run_readability_js_if_needed (gpointer data)
web_view);
}
+ web_view->reader_js_timeout = 0;
return G_SOURCE_REMOVE;
}