aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)