From 49d452a438943838c605748a4ec561623a070cc8 Mon Sep 17 00:00:00 2001 From: Alexander Butenko Date: Sat, 19 Dec 2009 20:21:10 +0100 Subject: [PATCH] Eval form history script so it applies to the right frame webkit_web_view_execute_script always works on the web view. --- extensions/formhistory.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/extensions/formhistory.c b/extensions/formhistory.c index 3594746c..334237ec 100644 --- a/extensions/formhistory.c +++ b/extensions/formhistory.c @@ -290,13 +290,12 @@ formhistory_session_request_queued_cb (SoupSession* session, #endif static void -formhistory_window_object_cleared_cb (GtkWidget* web_view, +formhistory_window_object_cleared_cb (WebKitWebView* web_view, WebKitWebFrame* web_frame, JSContextRef js_context, JSObjectRef js_window) { - webkit_web_view_execute_script (WEBKIT_WEB_VIEW (web_view), - formhistory_build_js ()); + sokoke_js_script_eval (js_context, formhistory_build_js (), NULL); } static void