ShouldAddGlobalHistory is now a little smarter. It will only add items that are loaded in contentType'd docShells. I'm sure there are more things we should restrict on, but this is a start. r=mscott, a=jar

git-svn-id: svn://10.0.0.236/trunk@61956 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
tbogard%aol.net
2000-03-01 05:18:04 +00:00
parent 06c2eef296
commit bd8c73ffba

View File

@@ -2165,10 +2165,14 @@ NS_IMETHODIMP nsDocShell::LoadHistoryEntry(nsISHEntry* aEntry)
NS_IMETHODIMP nsDocShell::ShouldAddToGlobalHistory(nsIURI* aURI,
PRBool* aShouldAdd)
{
*aShouldAdd = PR_TRUE;
if(typeContent == mItemType)
{
*aShouldAdd = PR_TRUE;
return NS_OK;
}
*aShouldAdd = PR_FALSE;
//XXX Should add code here for things we don't want added to global
// history
return NS_OK;
}