[Issue] https://bugs.tizen.org/jira/browse/TT-236
[Problem] Duplicated records in the history
[Solution] Added check if url already exist
[Verification] 1. Open few tabs with the same url
2.Open History Manager
There should be only one record for one URL
Change-Id: I7ede53f6855245da88c3f40f0d58c9bef0471b4d
void HistoryUI::addHistoryItem(std::shared_ptr<services::HistoryItem> hi)
{
BROWSER_LOGD("%s:%d %s", __FILE__, __LINE__, __func__);
+ for (auto it : _history_item_data) {
+ if (it->item->getTitle() == hi->getTitle())
+ return;
+ }
HistoryItemData *itemData = new HistoryItemData();
itemData->item = hi;
itemData->historyUI = std::shared_ptr<tizen_browser::base_ui::HistoryUI>(this);