Correctly implemented reload

This commit is contained in:
vidur%netscape.com 1998-08-13 04:48:57 +00:00
parent 1b8f8755bf
commit c07c4a5ef1

View File

@ -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;