aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/mozilla-embed.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'embed/mozilla/mozilla-embed.cpp')
-rw-r--r--embed/mozilla/mozilla-embed.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/embed/mozilla/mozilla-embed.cpp b/embed/mozilla/mozilla-embed.cpp
index 831e9d059..941698dfe 100644
--- a/embed/mozilla/mozilla-embed.cpp
+++ b/embed/mozilla/mozilla-embed.cpp
@@ -704,8 +704,9 @@ impl_get_location (EphyEmbed *embed,
if (toplevel)
{
- l = gtk_moz_embed_get_location
- (GTK_MOZ_EMBED(embed));
+ rv = wrapper->GetMainDocumentUrl (url);
+ l = (NS_SUCCEEDED (rv) && !url.IsEmpty()) ?
+ g_strdup (url.get()) : NULL;
}
else
{
@@ -1187,7 +1188,11 @@ mozilla_embed_location_changed_cb (GtkMozEmbed *embed,
* to know about it. */
if (membed->priv->no_page != 0)
{
- g_signal_emit_by_name (membed, "ge_location");
+ char *location;
+
+ location = gtk_moz_embed_get_location (embed);
+ g_signal_emit_by_name (membed, "ge_location", location);
+ g_free (location);
}
membed->priv->no_page = -1;