WebKitWebFrame *frame, WebKitNetworkRequest *request,
WebKitWebNavigationAction *action, WebKitWebPolicyDecision *policy,
gpointer data);
-static void window_object_cleared_cb(GtkWidget *widget, WebKitWebFrame *frame,
- JSContextRef js, JSObjectRef win, gpointer user_data);
+static void onload_event_cb(WebKitWebView *view, WebKitWebFrame *frame,
+ gpointer user_data);
static void hover_link_cb(WebKitWebView *webview, const char *title, const char *link);
static void title_changed_cb(WebKitWebView *webview, WebKitWebFrame *frame, const char *title);
static gboolean mimetype_decision_cb(WebKitWebView *webview,
"signal::should-show-delete-interface-for-element", G_CALLBACK(gtk_false), NULL,
"signal::resource-request-starting", G_CALLBACK(webview_request_starting_cb), NULL,
"signal::navigation-policy-decision-requested", G_CALLBACK(navigation_decision_requested_cb), NULL,
- "signal::window-object-cleared", G_CALLBACK(window_object_cleared_cb), NULL,
+ "signal::onload-event", G_CALLBACK(onload_event_cb), NULL,
NULL
);
return false;
}
-static void window_object_cleared_cb(GtkWidget *widget, WebKitWebFrame *frame,
- JSContextRef js, JSObjectRef win, gpointer user_data)
+static void onload_event_cb(WebKitWebView *view, WebKitWebFrame *frame,
+ gpointer user_data)
{
Document *doc = webkit_web_frame_get_dom_document(frame);
dom_check_auto_insert(doc);