Bug 1036280 - Newly added links are type=undefined instead of history [r=adw]

Include history type and make link creation the same by removing bgColor/imageURI.
This commit is contained in:
Ed Lee 2014-07-09 21:16:48 -07:00
Родитель 6e997d56da
Коммит 5d11c6ec87
2 изменённых файлов: 4 добавлений и 2 удалений

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

@ -41,6 +41,9 @@ function runTests() {
yield whenPagesUpdated(null, true);
yield addNewTabPageTab();
checkGrid("2,1,3,4,,,,,");
// Make sure these added links have the right type
is(getCell(1).site.link.type, "history", "added link is history");
}
function link(id) {

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

@ -573,9 +573,7 @@ let PlacesProvider = {
title: title,
frecency: frecency,
lastVisitDate: lastVisitDate,
bgColor: "transparent",
type: "history",
imageURI: null,
});
}
}
@ -650,6 +648,7 @@ let PlacesProvider = {
url: aURI.spec,
frecency: aNewFrecency,
lastVisitDate: aLastVisitDate,
type: "history",
});
}
},