diff options
author | Marco Pesenti Gritti <marco@gnome.org> | 2003-10-28 06:39:01 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2003-10-28 06:39:01 +0800 |
commit | c407eeb911c02bc8bd0790da08f764891779c188 (patch) | |
tree | f243c30f823215935e4d1f825269b36373943a6c /embed | |
parent | 6c94575f7a9971a6784905e8634fabec5683a53e (diff) | |
download | gsoc2013-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.
Diffstat (limited to 'embed')
-rw-r--r-- | embed/mozilla/EphyBrowser.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
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); |