Fix bug 313961: avoid making history items in the UI for "hidden" global history entries, such as those for subframes.

This commit is contained in:
smfr%smfr.org 2005-11-05 07:08:22 +00:00
Родитель 40ff226fe9
Коммит 8c82ffde3a
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -836,7 +836,8 @@ NS_IMPL_ISUPPORTS1(nsHistoryObserver, nsIHistoryObserver);
historyEnumerator->GetNext(getter_AddRefs(thisEntry)); historyEnumerator->GetNext(getter_AddRefs(thisEntry));
nsCOMPtr<nsIHistoryItem> thisItem = do_QueryInterface(thisEntry); nsCOMPtr<nsIHistoryItem> thisItem = do_QueryInterface(thisEntry);
if (thisItem) PRBool hidden;
if (thisItem && NS_SUCCEEDED(thisItem->GetHidden(&hidden)) && !hidden)
{ {
HistorySiteItem* item = [[HistorySiteItem alloc] initWithDataSource:self historyItem:thisItem]; HistorySiteItem* item = [[HistorySiteItem alloc] initWithDataSource:self historyItem:thisItem];
[mHistoryItems addObject:item]; [mHistoryItems addObject:item];