aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/mozilla-embed.cpp
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-06-15 06:34:43 +0800
committerChristian Persch <chpe@src.gnome.org>2004-06-15 06:34:43 +0800
commitc41a8f5a1e551116d8a1d82e0aa3246e636cc175 (patch)
tree9737a41f6c78c8fcdd4bc036b3153b628b893b19 /embed/mozilla/mozilla-embed.cpp
parent367e685ae5c06b9394607c98bca9e726b63e034c (diff)
downloadgsoc2013-epiphany-c41a8f5a1e551116d8a1d82e0aa3246e636cc175.tar
gsoc2013-epiphany-c41a8f5a1e551116d8a1d82e0aa3246e636cc175.tar.gz
gsoc2013-epiphany-c41a8f5a1e551116d8a1d82e0aa3246e636cc175.tar.bz2
gsoc2013-epiphany-c41a8f5a1e551116d8a1d82e0aa3246e636cc175.tar.lz
gsoc2013-epiphany-c41a8f5a1e551116d8a1d82e0aa3246e636cc175.tar.xz
gsoc2013-epiphany-c41a8f5a1e551116d8a1d82e0aa3246e636cc175.tar.zst
gsoc2013-epiphany-c41a8f5a1e551116d8a1d82e0aa3246e636cc175.zip
Work around mozilla bug #246392 which goes back to the original urls when
2004-06-15 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/EphyBrowser.cpp: * embed/mozilla/EphyBrowser.h: * embed/mozilla/mozilla-embed.cpp: Work around mozilla bug #246392 which goes back to the original urls when reloading a frameset. Fixes bug #115800.
Diffstat (limited to 'embed/mozilla/mozilla-embed.cpp')
-rw-r--r--embed/mozilla/mozilla-embed.cpp23
1 files changed, 22 insertions, 1 deletions
diff --git a/embed/mozilla/mozilla-embed.cpp b/embed/mozilla/mozilla-embed.cpp
index 1f4f826c1..5d7e30bc8 100644
--- a/embed/mozilla/mozilla-embed.cpp
+++ b/embed/mozilla/mozilla-embed.cpp
@@ -509,6 +509,12 @@ static void
impl_reload (EphyEmbed *embed,
gboolean force)
{
+ /* Workaround for broken reload with frames, see mozilla bug
+ * http://bugzilla.mozilla.org/show_bug.cgi?id=246392
+ * Replace #if 0 with appropriate MOZILLA_CHECK_VERSION4 once the bug
+ * has been fixed
+ */
+#if 0
guint32 mflags;
mflags = GTK_MOZ_EMBED_FLAG_RELOADNORMAL;
@@ -517,8 +523,14 @@ impl_reload (EphyEmbed *embed,
{
mflags = GTK_MOZ_EMBED_FLAG_RELOADBYPASSPROXYANDCACHE;
}
-
+
gtk_moz_embed_reload (GTK_MOZ_EMBED(embed), mflags);
+#else
+ MozillaEmbedPrivate *mpriv = MOZILLA_EMBED (embed)->priv;
+
+ mpriv->browser->Reload (force ? EphyBrowser::RELOAD_FORCE :
+ EphyBrowser::RELOAD_NORMAL);
+#endif
}
static void
@@ -749,8 +761,17 @@ impl_set_encoding (EphyEmbed *embed,
if (NS_FAILED (result)) return;
}
+ /* Workaround for broken reload with frames, see mozilla bug
+ * http://bugzilla.mozilla.org/show_bug.cgi?id=246392
+ * Replace #if 0 with appropriate MOZILLA_CHECK_VERSION4 once the bug
+ * has been fixed
+ */
+#if 0
gtk_moz_embed_reload (GTK_MOZ_EMBED (embed),
GTK_MOZ_EMBED_FLAG_RELOADCHARSETCHANGE);
+#else
+ mpriv->browser->Reload (EphyBrowser::RELOAD_ENCODING_CHANGE);
+#endif
}
static char *