mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 21:35:39 +00:00
Correctly implemented reload
This commit is contained in:
parent
1b8f8755bf
commit
c07c4a5ef1
@ -496,16 +496,10 @@ LocationImpl::SetSearch(const nsString& aSearch)
|
||||
NS_IMETHODIMP
|
||||
LocationImpl::Reload(JSContext *cx, jsval *argv, PRUint32 argc)
|
||||
{
|
||||
nsAutoString url;
|
||||
PRInt32 index;
|
||||
nsresult result = NS_OK;
|
||||
|
||||
if (nsnull != mWebShell) {
|
||||
mWebShell->GetHistoryIndex(index);
|
||||
result = mWebShell->GetURL(index, url);
|
||||
if (NS_OK == result) {
|
||||
result = mWebShell->LoadURL(url, nsnull, PR_FALSE);
|
||||
}
|
||||
result = mWebShell->Reload();
|
||||
}
|
||||
|
||||
return result;
|
||||
|
Loading…
Reference in New Issue
Block a user