Eval form history script so it applies to the right frame

webkit_web_view_execute_script always works on the web view.
This commit is contained in:
Alexander Butenko 2009-12-19 20:21:10 +01:00 committed by Christian Dywan
parent 747b882d2d
commit 49d452a438

View file

@ -290,13 +290,12 @@ formhistory_session_request_queued_cb (SoupSession* session,
#endif #endif
static void static void
formhistory_window_object_cleared_cb (GtkWidget* web_view, formhistory_window_object_cleared_cb (WebKitWebView* web_view,
WebKitWebFrame* web_frame, WebKitWebFrame* web_frame,
JSContextRef js_context, JSContextRef js_context,
JSObjectRef js_window) JSObjectRef js_window)
{ {
webkit_web_view_execute_script (WEBKIT_WEB_VIEW (web_view), sokoke_js_script_eval (js_context, formhistory_build_js (), NULL);
formhistory_build_js ());
} }
static void static void