diff options
Diffstat (limited to 'embed/mozilla')
-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); |