diff options
author | Xan Lopez <xan@gnome.org> | 2009-08-10 18:55:51 +0800 |
---|---|---|
committer | Xan Lopez <xan@gnome.org> | 2009-08-10 18:55:51 +0800 |
commit | af12311055ac2d9ea29103fbb507a3a1f6798658 (patch) | |
tree | eae5f478974e868012f4d8b93baa263bbb84462e /src/ephy-link.c | |
parent | 44706a1d0bc863eb6ffd9e14a207c230e9d3a028 (diff) | |
download | gsoc2013-epiphany-af12311055ac2d9ea29103fbb507a3a1f6798658.tar.gz gsoc2013-epiphany-af12311055ac2d9ea29103fbb507a3a1f6798658.tar.zst gsoc2013-epiphany-af12311055ac2d9ea29103fbb507a3a1f6798658.zip |
Move address normalization to the EphyWebView functions.
EphyLink is called repeatedly when opening URLs, so normalizing the
address there all the time is pointless. Also, we don't go through
here in all cases, so we need to add the normalization in the
ephy_web_view_load_request function too; this fixes opening URLs like
"foo.com" from the command line, for example.
Diffstat (limited to 'src/ephy-link.c')
-rw-r--r-- | src/ephy-link.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/ephy-link.c b/src/ephy-link.c index d6b226d65..49faa52ae 100644 --- a/src/ephy-link.c +++ b/src/ephy-link.c @@ -89,18 +89,13 @@ ephy_link_open (EphyLink *link, EphyLinkFlags flags) { EphyEmbed *new_embed = NULL; - char *effective_address; LOG ("ephy_link_open address \"%s\" parent-embed %p flags %u", address, embed, flags); - effective_address = ephy_embed_utils_normalize_address (address); - g_signal_emit (link, signals[OPEN_LINK], 0, - effective_address, embed, flags, + address, embed, flags, &new_embed); - g_free (effective_address); - return new_embed; } |