[Xfce4-commits] <midori:master> Pass through javascript: URIS from the command line
Christian Dywan
noreply at xfce.org
Sun May 22 16:56:01 CEST 2011
Updating branch refs/heads/master
to cd7522ef7f8dd5f857b8bba060db6a1c2ad41923 (commit)
from 6cc4c9db4e56d6e9e2e1bdc44678eac21d61d3aa (commit)
commit cd7522ef7f8dd5f857b8bba060db6a1c2ad41923
Author: Alexander Butenko <a.butenka at gmail.com>
Date: Sun May 22 16:54:56 2011 +0200
Pass through javascript: URIS from the command line
midori/main.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/midori/main.c b/midori/main.c
index 595439e..15e25d8 100644
--- a/midori/main.c
+++ b/midori/main.c
@@ -1561,6 +1561,8 @@ midori_prepare_uri (const gchar *uri)
if (g_path_is_absolute (uri))
return g_filename_to_uri (uri, NULL, NULL);
+ else if (g_str_has_prefix(uri, "javascript:"))
+ return g_strdup (uri);
else if (g_file_test (uri, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_REGULAR))
{
gchar* current_dir = g_get_current_dir ();
More information about the Xfce4-commits
mailing list