[Xfce4-commits] <midori:master> Eval form history script so it applies to the right frame

Christian Dywan noreply at xfce.org
Sat Dec 19 20:24:01 CET 2009


Updating branch refs/heads/master
         to 49d452a438943838c605748a4ec561623a070cc8 (commit)
       from 747b882d2d1f70a8c836d792fce5db22ad34ef29 (commit)

commit 49d452a438943838c605748a4ec561623a070cc8
Author: Alexander Butenko <a.butenka at gmail.com>
Date:   Sat Dec 19 20:21:10 2009 +0100

    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 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/extensions/formhistory.c b/extensions/formhistory.c
index 3594746..334237e 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



More information about the Xfce4-commits mailing list