mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-07 15:12:28 +00:00
Implemented Reload() on nsIWebShell
This commit is contained in:
parent
c07c4a5ef1
commit
51fe5f427d
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user