diff --git a/xpfe/browser/src/nsBrowserInstance.cpp b/xpfe/browser/src/nsBrowserInstance.cpp index b4c237bd32bc..66455bc8d5a6 100644 --- a/xpfe/browser/src/nsBrowserInstance.cpp +++ b/xpfe/browser/src/nsBrowserInstance.cpp @@ -2026,6 +2026,24 @@ nsBrowserAppCore::SetTitleForIndex(PRInt32 aIndex, const PRUnichar* aTitle) mSHistory->SetTitleForIndex(aIndex, aTitle); return NS_OK; } + +NS_IMETHODIMP +nsBrowserAppCore::GetHistoryObjectForIndex(PRInt32 aIndex, nsISupports ** aState) +{ + + if (mSHistory) + mSHistory->GetHistoryObjectForIndex(aIndex, aState); + return NS_OK; +} + +NS_IMETHODIMP +nsBrowserAppCore::SetHistoryObjectForIndex(PRInt32 aIndex, nsISupports * aState) +{ + if (mSHistory) + mSHistory->SetHistoryObjectForIndex(aIndex, aState); + return NS_OK; +} + /* NS_IMETHODIMP cloneHistory(nsISessionHistory * aSessionHistory) { diff --git a/xpfe/browser/src/nsBrowserInstance.h b/xpfe/browser/src/nsBrowserInstance.h index 0c60ad61c92b..3d47a01193c1 100644 --- a/xpfe/browser/src/nsBrowserInstance.h +++ b/xpfe/browser/src/nsBrowserInstance.h @@ -132,6 +132,9 @@ class nsBrowserInstance : public nsIBrowserInstance, NS_IMETHOD SetTitleForIndex(PRInt32 aIndex, const PRUnichar * aTitle); + NS_IMETHOD GetHistoryObjectForIndex(PRInt32 aIndex, nsISupports ** aState); + + NS_IMETHOD SetHistoryObjectForIndex(PRInt32 aIndex, nsISupports * aState); protected: NS_IMETHOD DoDialog();