return NS_OK;
if (nsnull != mContainer) { rv = mContainer->BeginLoadURL(this, urlSpec); if (NS_OK != rv) { return rv; } }  rv = mDocLoader->LoadDocument(urlSpec, nsnull, this, nsnull, nsnull, this, nsURLReload); } return rv;
NS_IMETHODIMP nsWebShell::GoTo(PRInt32 aIndex){   NS_ENSURE_STATE(mSessionHistory);   NS_ENSURE_TRUE(!IsFrame(), NS_ERROR_FAILURE);   nsCOMPtr<nsISHEntry> entry;   NS_ENSURE_SUCCESS(mSessionHistory->GetEntryAtIndex(aIndex, PR_TRUE,       getter_AddRefs(entry)), NS_ERROR_FAILURE);   NS_ENSURE_TRUE(entry, NS_ERROR_FAILURE);   UpdateCurrentSessionHistory();  #ifdef SH_IN_FRAMES   NS_ENSURE_SUCCESS(LoadHistoryEntry(entry, nsIDocShellLoadInfo::loadHistory), NS_ERROR_FAILURE);#else   NS_ENSURE_SUCCESS(LoadHistoryEntry(entry), NS_ERROR_FAILURE);#endif   return NS_OK;}