mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-26 00:17:47 -10:00
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:
1 parent
1b103656f4
commit
107144891f
1 file changed
+7
-3
@@ -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