aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-08-06 20:51:09 +0800
committerChristian Persch <chpe@src.gnome.org>2004-08-06 20:51:09 +0800
commitf15105e06c66e1156f6c8f4542db62eed0ee46f2 (patch)
treec157b80dee44f21df8a8da49b496864151ae1cd4 /embed
parentf9f94be91053ec7560e4b6e34a338dda9a40457d (diff)
downloadgsoc2013-epiphany-f15105e06c66e1156f6c8f4542db62eed0ee46f2.tar
gsoc2013-epiphany-f15105e06c66e1156f6c8f4542db62eed0ee46f2.tar.gz
gsoc2013-epiphany-f15105e06c66e1156f6c8f4542db62eed0ee46f2.tar.bz2
gsoc2013-epiphany-f15105e06c66e1156f6c8f4542db62eed0ee46f2.tar.lz
gsoc2013-epiphany-f15105e06c66e1156f6c8f4542db62eed0ee46f2.tar.xz
gsoc2013-epiphany-f15105e06c66e1156f6c8f4542db62eed0ee46f2.tar.zst
gsoc2013-epiphany-f15105e06c66e1156f6c8f4542db62eed0ee46f2.zip
Now that mozilla bug #246392 is fixed, only enable our work-around for old
2004-08-06 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/EphyBrowser.cpp: * embed/mozilla/EphyBrowser.h: * embed/mozilla/mozilla-embed.cpp: Now that mozilla bug #246392 is fixed, only enable our work-around for old mozilla versions.
Diffstat (limited to 'embed')
-rw-r--r--embed/mozilla/EphyBrowser.cpp2
-rw-r--r--embed/mozilla/EphyBrowser.h8
-rw-r--r--embed/mozilla/mozilla-embed.cpp18
3 files changed, 18 insertions, 10 deletions
diff --git a/embed/mozilla/EphyBrowser.cpp b/embed/mozilla/EphyBrowser.cpp
index 77ceadfb1..c9cb5a4a0 100644
--- a/embed/mozilla/EphyBrowser.cpp
+++ b/embed/mozilla/EphyBrowser.cpp
@@ -414,6 +414,7 @@ nsresult EphyBrowser::GoToHistoryIndex (PRInt16 index)
return ContentNav->GotoIndex (index);
}
+#if !MOZILLA_CHECK_VERSION4 (1, 7, MOZILLA_RELEASE, 3) && !MOZILLA_CHECK_VERSION4 (1, 8, MOZILLA_ALPHA, 3)
/* Workaround for broken reload with frames, see mozilla bug
* http://bugzilla.mozilla.org/show_bug.cgi?id=246392
*/
@@ -451,6 +452,7 @@ nsresult EphyBrowser::Reload (PRUint32 flags)
return webNavigation->Reload (reloadFlags);
}
+#endif
nsresult EphyBrowser::SetZoom (float aZoom)
{
diff --git a/embed/mozilla/EphyBrowser.h b/embed/mozilla/EphyBrowser.h
index 99a15f002..d3472782d 100644
--- a/embed/mozilla/EphyBrowser.h
+++ b/embed/mozilla/EphyBrowser.h
@@ -21,6 +21,12 @@
#ifndef EPHY_BROWSER_H
#define EPHY_BROWSER_H
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include "mozilla-version.h"
+
#include "ephy-encodings.h"
#include "ephy-embed.h"
@@ -106,11 +112,13 @@ public:
nsresult GetSHUrlAtIndex (PRInt32 index, nsACString &url);
nsresult GoToHistoryIndex (PRInt16 index);
+#if !MOZILLA_CHECK_VERSION4 (1, 7, MOZILLA_RELEASE, 3) && !MOZILLA_CHECK_VERSION4 (1, 8, MOZILLA_ALPHA, 3)
enum { RELOAD_NORMAL = 0 };
enum { RELOAD_FORCE = 1 };
enum { RELOAD_ENCODING_CHANGE = 2 };
nsresult Reload (PRUint32 flags);
+#endif
nsresult ForceEncoding (const char *encoding);
nsresult GetEncoding (nsACString &encoding);
diff --git a/embed/mozilla/mozilla-embed.cpp b/embed/mozilla/mozilla-embed.cpp
index 8f86a7a33..47721ab13 100644
--- a/embed/mozilla/mozilla-embed.cpp
+++ b/embed/mozilla/mozilla-embed.cpp
@@ -502,12 +502,7 @@ 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
+#if MOZILLA_CHECK_VERSION4 (1, 7, MOZILLA_RELEASE, 3) || MOZILLA_CHECK_VERSION4 (1, 8, MOZILLA_ALPHA, 3)
guint32 mflags;
mflags = GTK_MOZ_EMBED_FLAG_RELOADNORMAL;
@@ -519,6 +514,9 @@ impl_reload (EphyEmbed *embed,
gtk_moz_embed_reload (GTK_MOZ_EMBED(embed), mflags);
#else
+ /* Workaround for broken reload with frames, see mozilla bug
+ * http://bugzilla.mozilla.org/show_bug.cgi?id=246392
+ */
MozillaEmbedPrivate *mpriv = MOZILLA_EMBED (embed)->priv;
mpriv->browser->Reload (force ? EphyBrowser::RELOAD_FORCE :
@@ -712,15 +710,15 @@ impl_set_encoding (EphyEmbed *embed,
if (NS_FAILED (result)) return;
}
+#if MOZILLA_CHECK_VERSION4 (1, 7, MOZILLA_RELEASE, 3) || MOZILLA_CHECK_VERSION4 (1, 8, MOZILLA_ALPHA, 3)
+ gtk_moz_embed_reload (GTK_MOZ_EMBED (embed),
+ GTK_MOZ_EMBED_FLAG_RELOADCHARSETCHANGE);
+#else
/* 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
}