summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Catanzaro <mcatanzaro@gnome.org>2021-03-25 13:47:41 -0500
committerMichael Catanzaro <mcatanzaro@gnome.org>2021-03-25 13:47:41 -0500
commitadeb59da5ae7d177a3bb7016bc27990e851b82ee (patch)
tree61828a6e91bd5d8686b979f3e063b5b2f480f57b
parentb7a8f2e82927863256088e6aaa1f598bdcd52279 (diff)
downloadepiphany-adeb59da5ae7d177a3bb7016bc27990e851b82ee.tar.gz
web-view: remove bad assert
I incorrectly assumed that a GTask becomes completed once g_task_return() is called. In fact, it becomes completed once its callback is invoked, which may occur later. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1942814
-rw-r--r--embed/ephy-web-view.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 6daa9fee7..9fc1cc28e 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -3137,7 +3137,6 @@ has_modified_forms_cb (WebKitWebView *view,
id = GPOINTER_TO_INT (g_task_get_task_data (task));
if (id == 0) {
/* We hit the timeout. Our task has already returned. */
- g_assert (g_task_get_completed (task));
goto out;
}
g_source_remove (id);