mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Back() and Forward() have been changed to use the nsIWebNavigation interfaces instead of the old nsIWebShell.
This commit is contained in:
parent
6f99d05f74
commit
932354edc2
@ -66,6 +66,7 @@
|
||||
#include "nsIDocumentLoader.h"
|
||||
#include "nsIDocShellTreeItem.h"
|
||||
#include "nsIDocShellTreeNode.h"
|
||||
#include "nsIWebNavigation.h"
|
||||
#include "nsIBaseWindow.h"
|
||||
#include "nsXPIDLString.h"
|
||||
|
||||
@ -752,15 +753,15 @@ nsBrowserWindow::DispatchMenuItem(PRInt32 aID)
|
||||
void
|
||||
nsBrowserWindow::Back()
|
||||
{
|
||||
nsCOMPtr<nsIWebShell> webShell(do_QueryInterface(mDocShell));
|
||||
webShell->Back();
|
||||
nsCOMPtr<nsIWebNavigation> webNav(do_QueryInterface(mWebBrowser));
|
||||
webNav->GoBack();
|
||||
}
|
||||
|
||||
void
|
||||
nsBrowserWindow::Forward()
|
||||
{
|
||||
nsCOMPtr<nsIWebShell> webShell(do_QueryInterface(mDocShell));
|
||||
webShell->Forward();
|
||||
nsCOMPtr<nsIWebNavigation> webNav(do_QueryInterface(mWebBrowser));
|
||||
webNav->GoForward();
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user