зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
292dc8ace6
Коммит
116356c4d6
|
@ -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;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче