Changed reload to go through the new nsIWebNavigation interface on the docShell. Work for 13374 and landing of new session history/ uriloading. r=mscott a=jevering

This commit is contained in:
tbogard%aol.net 2000-02-24 03:58:44 +00:00
Родитель bfd5abb9cf
Коммит 11abee0833
1 изменённых файлов: 6 добавлений и 5 удалений

Просмотреть файл

@ -25,6 +25,7 @@
#include "nsAppShellCIDs.h"
#include "nsVoidArray.h"
#include "nsIWebShell.h"
#include "nsIWebNavigation.h"
#include "prmem.h"
#include "nsString.h"
#include "nsIFactory.h"
@ -1138,11 +1139,11 @@ nsSessionHistory::Goto(PRInt32 aGotoIndex, nsIWebShell * prev, PRBool aIsReload)
NS_IMETHODIMP
nsSessionHistory::Reload(nsIWebShell * aPrev, nsLoadFlags aReloadFlags)
{
nsCOMPtr<nsIWebNavigation> webNav(do_QueryInterface(aPrev));
NS_ENSURE_TRUE(webNav, NS_ERROR_FAILURE);
// Call goto with the Reload flag set to true
//Error check on aPrev done in Goto()
Goto(mHistoryCurrentIndex, aPrev, PR_TRUE);
NS_ENSURE_SUCCESS(webNav->Reload(nsIWebNavigation::reloadNormal),
NS_ERROR_FAILURE);
return NS_OK;
}