Bug 412348 ? Titles are missing in smart Bookmarks and Addressbar for urls w/out www (for ondrej@allpeers.com, r=dietrich)

This commit is contained in:
dietrich@mozilla.com 2008-03-19 12:30:49 -07:00
Родитель 292dc8ace6
Коммит 116356c4d6
1 изменённых файлов: 6 добавлений и 1 удалений

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

@ -158,7 +158,12 @@ AddToHistoryCB(const nsCSubstring &aRowID,
: (PRInt32) nsINavHistoryService::TRANSITION_LINK; : (PRInt32) nsINavHistoryService::TRANSITION_LINK;
nsNavHistory *history = data->history; nsNavHistory *history = data->history;
history->AddPageWithVisit(uri, nsDependentString(title, titleLength), nsAutoString titleStr;
if (titleLength)
titleStr = nsDependentString(title, titleLength);
else
titleStr.SetIsVoid(PR_TRUE);
history->AddPageWithVisit(uri, titleStr,
PR_FALSE, isTyped, count, transition, date); PR_FALSE, isTyped, count, transition, date);
} }
return PL_DHASH_NEXT; return PL_DHASH_NEXT;