aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2003-11-17 20:47:16 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2003-11-17 20:47:16 +0800
commit5f152449ad08cd5d2d77e052aff3c40cf8ce5b9d (patch)
tree86c0a15b9c8cb3c5a8404edfadabd8573f5a6500
parentc59be23acf60d721f2aa2b37e242656a22ce29ff (diff)
downloadgsoc2013-epiphany-5f152449ad08cd5d2d77e052aff3c40cf8ce5b9d.tar
gsoc2013-epiphany-5f152449ad08cd5d2d77e052aff3c40cf8ce5b9d.tar.gz
gsoc2013-epiphany-5f152449ad08cd5d2d77e052aff3c40cf8ce5b9d.tar.bz2
gsoc2013-epiphany-5f152449ad08cd5d2d77e052aff3c40cf8ce5b9d.tar.lz
gsoc2013-epiphany-5f152449ad08cd5d2d77e052aff3c40cf8ce5b9d.tar.xz
gsoc2013-epiphany-5f152449ad08cd5d2d77e052aff3c40cf8ce5b9d.tar.zst
gsoc2013-epiphany-5f152449ad08cd5d2d77e052aff3c40cf8ce5b9d.zip
Pass WebPageDescriptor, not CurrentDescriptor. This way we dont refetch
2003-11-17 Marco Pesenti Gritti <marco@gnome.org> * embed/mozilla/EphyBrowser.cpp: Pass WebPageDescriptor, not CurrentDescriptor. This way we dont refetch page on post.
-rw-r--r--ChangeLog7
-rw-r--r--embed/mozilla/EphyBrowser.cpp10
2 files changed, 13 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 087a8a6d0..0d9973e5c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2003-11-17 Marco Pesenti Gritti <marco@gnome.org>
+ * embed/mozilla/EphyBrowser.cpp:
+
+ Pass WebPageDescriptor, not CurrentDescriptor.
+ This way we dont refetch page on post.
+
+2003-11-17 Marco Pesenti Gritti <marco@gnome.org>
+
* configure.in:
* embed/mozilla/GtkNSSDialogs.cpp:
* embed/mozilla/GtkNSSKeyPairDialogs.cpp:
diff --git a/embed/mozilla/EphyBrowser.cpp b/embed/mozilla/EphyBrowser.cpp
index 732de1c42..2f1b19d7e 100644
--- a/embed/mozilla/EphyBrowser.cpp
+++ b/embed/mozilla/EphyBrowser.cpp
@@ -494,12 +494,14 @@ nsresult EphyBrowser::GetPageDescriptor(nsISupports **aPageDescriptor)
nsCOMPtr<nsIDocShell> ds;
ds = do_GetInterface (mWebBrowser);
- if (!ds) return NS_ERROR_FAILURE;
- nsCOMPtr<nsIWebPageDescriptor> wpd = do_QueryInterface(ds, &rv);
- if (!wpd || !NS_SUCCEEDED(rv)) return NS_ERROR_FAILURE;
+ nsCOMPtr<nsIWebPageDescriptor> wpd = do_QueryInterface (ds);
+ if (!wpd) return NS_ERROR_FAILURE;
+
+ *aPageDescriptor = wpd.get();
+ NS_IF_ADDREF (*aPageDescriptor);
- return wpd->GetCurrentDescriptor(aPageDescriptor);
+ return NS_OK;
}
nsresult EphyBrowser::GetDocumentUrl (nsCString &url)