Implemented Reload() on nsIWebShell

git-svn-id: svn://10.0.0.236/trunk@7911 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
vidur%netscape.com
1998-08-13 04:49:16 +00:00
parent 3357387df9
commit e93758344d
2 changed files with 12 additions and 0 deletions

View File

@@ -945,6 +945,12 @@ nsWebShell::LoadURL(const nsString& aURLSpec,
NS_IMETHODIMP
nsWebShell::Reload()
{
nsString* s = (nsString*) mHistory.ElementAt(mHistoryIndex);
if (nsnull != s) {
// XXX What about the post data?
return LoadURL(*s, nsnull, PR_FALSE);
}
return NS_OK;
}

View File

@@ -945,6 +945,12 @@ nsWebShell::LoadURL(const nsString& aURLSpec,
NS_IMETHODIMP
nsWebShell::Reload()
{
nsString* s = (nsString*) mHistory.ElementAt(mHistoryIndex);
if (nsnull != s) {
// XXX What about the post data?
return LoadURL(*s, nsnull, PR_FALSE);
}
return NS_OK;
}