aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-web-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'embed/ephy-web-view.c')
-rw-r--r--embed/ephy-web-view.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index cc9469aa2..2f5ae2b7d 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -2953,15 +2953,15 @@ ephy_web_view_load_url (EphyWebView *view,
g_free (temp_url);
#endif
} else if (g_str_has_prefix (effective_url, "javascript:")) {
-#ifdef HAVE_WEBKIT2
- /* TODO: Run JavaScript */
-#else
char *decoded_url;
decoded_url = soup_uri_decode (effective_url);
+#ifdef HAVE_WEBKIT2
+ webkit_web_view_run_javascript (WEBKIT_WEB_VIEW (view), decoded_url, NULL, NULL, NULL);
+#else
webkit_web_view_execute_script (WEBKIT_WEB_VIEW (view), decoded_url);
- g_free (decoded_url);
#endif
+ g_free (decoded_url);
} else
webkit_web_view_load_uri (WEBKIT_WEB_VIEW (view), effective_url);