aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla
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 /embed/mozilla
parentc59be23acf60d721f2aa2b37e242656a22ce29ff (diff)
downloadgsoc2013-epiphany-5f152449ad08cd5d2d77e052aff3c40cf8ce5b9d.tar.gz
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.
Diffstat (limited to 'embed/mozilla')
-rw-r--r--embed/mozilla/EphyBrowser.cpp10
1 files changed, 6 insertions, 4 deletions
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)