]> spindle.queued.net Git - midori/commitdiff
Eval form history script so it applies to the right frame
authorAlexander Butenko <a.butenka@gmail.com>
Sat, 19 Dec 2009 19:21:10 +0000 (20:21 +0100)
committerChristian Dywan <christian@twotoasts.de>
Sat, 19 Dec 2009 19:22:23 +0000 (20:22 +0100)
webkit_web_view_execute_script always works on the web view.

extensions/formhistory.c

index 3594746ca2833ee967818aafe495b94c88c3a933..334237ec08e3657b7a95064f623746a7bca88890 100644 (file)
@@ -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