Implemented Reload() on nsIWebShell
git-svn-id: svn://10.0.0.236/trunk@7911 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user