aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2003-10-28 06:39:01 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2003-10-28 06:39:01 +0800
commitc407eeb911c02bc8bd0790da08f764891779c188 (patch)
treef243c30f823215935e4d1f825269b36373943a6c
parent6c94575f7a9971a6784905e8634fabec5683a53e (diff)
downloadgsoc2013-epiphany-c407eeb911c02bc8bd0790da08f764891779c188.tar
gsoc2013-epiphany-c407eeb911c02bc8bd0790da08f764891779c188.tar.gz
gsoc2013-epiphany-c407eeb911c02bc8bd0790da08f764891779c188.tar.bz2
gsoc2013-epiphany-c407eeb911c02bc8bd0790da08f764891779c188.tar.lz
gsoc2013-epiphany-c407eeb911c02bc8bd0790da08f764891779c188.tar.xz
gsoc2013-epiphany-c407eeb911c02bc8bd0790da08f764891779c188.tar.zst
gsoc2013-epiphany-c407eeb911c02bc8bd0790da08f764891779c188.zip
Fix page cloning, I was query descriptors interface on webBrowser instead
2003-10-27 Marco Pesenti Gritti <marco@gnome.org> * embed/mozilla/EphyBrowser.cpp: Fix page cloning, I was query descriptors interface on webBrowser instead of docshell.
-rw-r--r--ChangeLog7
-rw-r--r--embed/mozilla/EphyBrowser.cpp16
2 files changed, 15 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index 3b826b2a7..8397a0e5d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,13 @@
* embed/mozilla/EphyBrowser.cpp:
+ Fix page cloning, I was query descriptors interface
+ on webBrowser instead of docshell.
+
+2003-10-27 Marco Pesenti Gritti <marco@gnome.org>
+
+ * embed/mozilla/EphyBrowser.cpp:
+
We need to force the encoding to be able
to unset it.
diff --git a/embed/mozilla/EphyBrowser.cpp b/embed/mozilla/EphyBrowser.cpp
index f01965381..102607e4e 100644
--- a/embed/mozilla/EphyBrowser.cpp
+++ b/embed/mozilla/EphyBrowser.cpp
@@ -497,11 +497,11 @@ nsresult EphyBrowser::LoadDocument(nsISupports *aPageDescriptor,
g_return_val_if_fail (mWebBrowser, NS_ERROR_FAILURE);
- nsCOMPtr<nsIWebNavigation> wn;
- wn = do_QueryInterface (mWebBrowser);
- if (!wn) return NS_ERROR_FAILURE;
+ nsCOMPtr<nsIDocShell> ds;
+ ds = do_GetInterface (mWebBrowser);
+ if (!ds) return NS_ERROR_FAILURE;
- nsCOMPtr<nsIWebPageDescriptor> wpd = do_QueryInterface(wn, &rv);
+ nsCOMPtr<nsIWebPageDescriptor> wpd = do_QueryInterface(ds, &rv);
if (!wpd || !NS_SUCCEEDED(rv)) return NS_ERROR_FAILURE;
return wpd->LoadPage(aPageDescriptor, aDisplayType);
@@ -513,11 +513,11 @@ nsresult EphyBrowser::GetPageDescriptor(nsISupports **aPageDescriptor)
g_return_val_if_fail (mWebBrowser, NS_ERROR_FAILURE);
- nsCOMPtr<nsIWebNavigation> wn;
- wn = do_QueryInterface (mWebBrowser);
- if (!wn) return NS_ERROR_FAILURE;
+ nsCOMPtr<nsIDocShell> ds;
+ ds = do_GetInterface (mWebBrowser);
+ if (!ds) return NS_ERROR_FAILURE;
- nsCOMPtr<nsIWebPageDescriptor> wpd = do_QueryInterface(wn, &rv);
+ nsCOMPtr<nsIWebPageDescriptor> wpd = do_QueryInterface(ds, &rv);
if (!wpd || !NS_SUCCEEDED(rv)) return NS_ERROR_FAILURE;
return wpd->GetCurrentDescriptor(aPageDescriptor);