projects
/
uzbl-mobile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ca3e6f
)
javascript: URIs work.
author
Tom Adams
<tom@holizz.com>
Fri, 5 Jun 2009 21:36:41 +0000
(22:36 +0100)
committer
Dieter Plaetinck
<dieter@plaetinck.be>
Sat, 6 Jun 2009 17:38:59 +0000
(19:38 +0200)
uzbl.c
patch
|
blob
|
history
diff --git
a/uzbl.c
b/uzbl.c
index
ba5a98a
..
17628b2
100644
(file)
--- a/
uzbl.c
+++ b/
uzbl.c
@@
-731,6
+731,10
@@
static void
load_uri (WebKitWebView *web_view, GArray *argv) {
if (argv_idx(argv, 0)) {
GString* newuri = g_string_new (argv_idx(argv, 0));
+ if (g_strstr_len (argv_idx(argv, 0), 11, "javascript:") != NULL) {
+ run_js(web_view, argv);
+ return;
+ }
if (g_strrstr (argv_idx(argv, 0), "://") == NULL)
g_string_prepend (newuri, "http://");
/* if we do handle cookies, ask our handler for them */