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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user