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
Stop();
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;}