Fix for topEmbed bug 93027 r=pollmann sr=darin

This commit is contained in:
radha%netscape.com 2005-08-18 11:16:12 +00:00
Родитель 58175a633e
Коммит 71d89942ce
3 изменённых файлов: 21 добавлений и 0 удалений

Просмотреть файл

@ -74,6 +74,9 @@ attribute unsigned long ID;
/** attribute to set and get the cache key for the entry */
attribute nsISupports cacheKey;
/** attribute to indicate whether layoutHistoryState should be saved */
attribute boolean saveHistoryStateFlag;
/** Additional ways to create an entry */
void create(in nsIURI aURI, in wstring aTitle, in nsIDOMDocument aDocument,
in nsIInputStream aInputStream, in nsILayoutHistoryState aHistoryLayoutState,

Просмотреть файл

@ -223,6 +223,20 @@ NS_IMETHODIMP nsSHEntry::SetCacheKey(nsISupports* aCacheKey)
return NS_OK;
}
NS_IMETHODIMP nsSHEntry::GetSaveHistoryStateFlag(PRBool * aFlag)
{
NS_ENSURE_ARG_POINTER(aFlag);
*aFlag = mSaveHistoryState;
return NS_OK;
}
NS_IMETHODIMP nsSHEntry::SetSaveHistoryStateFlag(PRBool aFlag)
{
mSaveHistoryState = aFlag;
return NS_OK;
}
nsresult
nsSHEntry::Create(nsIURI * aURI, const PRUnichar * aTitle, nsIDOMDocument * aDOMDocument,
nsIInputStream * aInputStream, nsILayoutHistoryState * aHistoryLayoutState,
@ -243,6 +257,9 @@ nsSHEntry::Create(nsIURI * aURI, const PRUnichar * aTitle, nsIDOMDocument * aDOM
// all subframe navigations, sets the flag to true.
SetIsSubFrame(PR_FALSE);
// By default we save HistoryLayoutState
SetSaveHistoryStateFlag(PR_TRUE);
return NS_OK;
}

Просмотреть файл

@ -65,6 +65,7 @@ private:
PRUint32 mLoadType;
PRUint32 mID;
PRBool mIsFrameNavigation;
PRBool mSaveHistoryState;
nsCOMPtr<nsISupports> mCacheKey;
nsISHEntry * mParent; // weak reference
};