diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2005-07-13 04:47:21 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-07-13 04:47:21 +0800 |
commit | 40cd4d7a1f61926cf9e84664491b3236e9084201 (patch) | |
tree | 59947423032e111c797b689962d338f8cf2480d7 /embed/mozilla/EphyBrowser.cpp | |
parent | cccabbcbbe25e8496f6e2bdcc77c235fe3eb3857 (diff) | |
download | gsoc2013-epiphany-40cd4d7a1f61926cf9e84664491b3236e9084201.tar.gz gsoc2013-epiphany-40cd4d7a1f61926cf9e84664491b3236e9084201.tar.zst gsoc2013-epiphany-40cd4d7a1f61926cf9e84664491b3236e9084201.zip |
Remove the reload workaround, since the mozilla bug is fixed on all
2005-07-12 Christian Persch <chpe@cvs.gnome.org>
* embed/mozilla/EphyBrowser.cpp:
* embed/mozilla/EphyBrowser.h:
* embed/mozilla/mozilla-embed.cpp:
Remove the reload workaround, since the mozilla bug
is fixed on all supported mozilla version.
Diffstat (limited to 'embed/mozilla/EphyBrowser.cpp')
-rw-r--r-- | embed/mozilla/EphyBrowser.cpp | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/embed/mozilla/EphyBrowser.cpp b/embed/mozilla/EphyBrowser.cpp index 023350fce..ba295ef7c 100644 --- a/embed/mozilla/EphyBrowser.cpp +++ b/embed/mozilla/EphyBrowser.cpp @@ -803,46 +803,6 @@ nsresult EphyBrowser::GoToHistoryIndex (PRInt16 index) return ContentNav->GotoIndex (index); } -#ifndef HAVE_GECKO_1_8 -/* Workaround for broken reload with frames, see mozilla bug - * http://bugzilla.mozilla.org/show_bug.cgi?id=246392 - */ -nsresult EphyBrowser::Reload (ReloadType flags) -{ - NS_ENSURE_TRUE (mWebBrowser, NS_ERROR_FAILURE); - - nsCOMPtr<nsISHistory> sessionHistory; - GetSHistory (getter_AddRefs (sessionHistory)); - - nsCOMPtr<nsIWebNavigation> webNavigation; - webNavigation = do_QueryInterface (sessionHistory); - - if (!webNavigation) - { - webNavigation = do_QueryInterface (mWebBrowser); - } - NS_ENSURE_TRUE (webNavigation, NS_ERROR_FAILURE); - - PRUint32 reloadFlags; - switch (flags) - { - case RELOAD_FORCE: - reloadFlags = nsIWebNavigation::LOAD_FLAGS_BYPASS_CACHE | - nsIWebNavigation::LOAD_FLAGS_BYPASS_PROXY; - break; - case RELOAD_ENCODING_CHANGE: - reloadFlags = nsIWebNavigation::LOAD_FLAGS_CHARSET_CHANGE; - break; - case RELOAD_NORMAL: - default: - reloadFlags = 0; - break; - } - - return webNavigation->Reload (reloadFlags); -} -#endif /* !HAVE_GECKO_1_8 */ - nsresult EphyBrowser::SetZoom (float aZoom) { NS_ENSURE_TRUE (mWebBrowser, NS_ERROR_FAILURE); |