From 0cd1c158d752ee7ff16f4dc8bd6dcab03618e734 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sun, 11 Mar 2012 18:50:36 +0100 Subject: [PATCH] Guard formhistory_suggestions_hide_cb for GDOM --- extensions/formhistory/formhistory.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extensions/formhistory/formhistory.c b/extensions/formhistory/formhistory.c index 90d61858..cc81cdef 100644 --- a/extensions/formhistory/formhistory.c +++ b/extensions/formhistory/formhistory.c @@ -216,7 +216,9 @@ formhistory_navigation_decision_cb (WebKitWebView* web_view, js_context = webkit_web_frame_get_global_context (web_frame); value = sokoke_js_script_eval (js_context, script, NULL); +#ifdef FORMHISTORY_USE_GDOM formhistory_suggestions_hide_cb (NULL, NULL, priv); +#endif if (value && *value) { gchar** inputs = g_strsplit (value, "|||", 0);