aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--embed/mozilla/mozilla-embed.cpp15
2 files changed, 20 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 2679ca379..09353d0b7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-04-10 Christian Persch <chpe@cvs.gnome.org>
+
+ * embed/mozilla/mozilla-embed.cpp:
+
+ Emit document-change event on fastback restore. Fixes bug #312785.
+
2006-04-09 Christian Persch <chpe@cvs.gnome.org>
* data/default-prefs-common.js:
diff --git a/embed/mozilla/mozilla-embed.cpp b/embed/mozilla/mozilla-embed.cpp
index cbf728559..9d27d1c27 100644
--- a/embed/mozilla/mozilla-embed.cpp
+++ b/embed/mozilla/mozilla-embed.cpp
@@ -923,6 +923,19 @@ update_load_state (MozillaEmbed *membed, gint state)
priv->browser->GetDocumentType ());
}
+#ifdef HAVE_GECKO_1_8
+ if (state & GTK_MOZ_EMBED_FLAG_RESTORING &&
+ priv->load_state == MOZILLA_EMBED_LOAD_STARTED)
+ {
+ priv->load_state = MOZILLA_EMBED_LOAD_LOADING;
+
+ char *address;
+ address = gtk_moz_embed_get_location (GTK_MOZ_EMBED (membed));
+ g_signal_emit_by_name (membed, "ge-content-change", address);
+ g_free (address);
+ }
+#endif
+
if (state & GTK_MOZ_EMBED_FLAG_IS_NETWORK)
{
if (state & GTK_MOZ_EMBED_FLAG_START)
@@ -997,7 +1010,7 @@ mozilla_embed_net_state_all_cb (GtkMozEmbed *embed, const char *aURI,
update_load_state (membed, state);
- g_signal_emit_by_name (membed, "ge_net_state", aURI, estate);
+ g_signal_emit_by_name (membed, "ge_net_state", aURI, /* FIXME: (gulong) */ estate);
}
static gboolean