aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorGustavo Noronha Silva <gns@gnome.org>2008-12-28 02:33:40 +0800
committerGustavo Noronha Silva <kov@debian.org>2009-05-30 00:15:59 +0800
commit0ce6fe842a2fc4c3155452f69247cdda97ab09d1 (patch)
tree47e97153fad4269cac34bb20f188917e8952ba0c /embed
parentb8fbb465b2dd76b7fd27582fe9d376d870f404e0 (diff)
downloadgsoc2013-epiphany-0ce6fe842a2fc4c3155452f69247cdda97ab09d1.tar
gsoc2013-epiphany-0ce6fe842a2fc4c3155452f69247cdda97ab09d1.tar.gz
gsoc2013-epiphany-0ce6fe842a2fc4c3155452f69247cdda97ab09d1.tar.bz2
gsoc2013-epiphany-0ce6fe842a2fc4c3155452f69247cdda97ab09d1.tar.lz
gsoc2013-epiphany-0ce6fe842a2fc4c3155452f69247cdda97ab09d1.tar.xz
gsoc2013-epiphany-0ce6fe842a2fc4c3155452f69247cdda97ab09d1.tar.zst
gsoc2013-epiphany-0ce6fe842a2fc4c3155452f69247cdda97ab09d1.zip
Move URL normalization out of embed, to a higher level
We need this because not all code that loads URLs goes through embed now.
Diffstat (limited to 'embed')
-rw-r--r--embed/webkit/webkit-embed.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/embed/webkit/webkit-embed.c b/embed/webkit/webkit-embed.c
index 778106ab2..27a720576 100644
--- a/embed/webkit/webkit-embed.c
+++ b/embed/webkit/webkit-embed.c
@@ -795,20 +795,8 @@ impl_load (EphyEmbed *embed,
EphyEmbed *preview_embed)
{
WebKitEmbed *wembed = WEBKIT_EMBED (embed);
- char *effective_url = NULL;
- /* WebKit cannot handle URLs without a protocol */
- if (ephy_embed_utils_address_has_web_scheme (url) == FALSE)
- effective_url = g_strconcat ("http://", url, NULL);
- else
- effective_url = g_strdup (url);
-
- g_free (wembed->priv->loading_uri);
- wembed->priv->loading_uri = g_strdup (effective_url);
-
- webkit_web_view_open (wembed->priv->web_view, effective_url);
-
- g_free (effective_url);
+ webkit_web_view_open (wembed->priv->web_view, url);
}
static gboolean