зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
6e997d56da
Коммит
5d11c6ec87
|
@ -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",
|
||||
});
|
||||
}
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче