Bug 1014460 - Extend the retention period of UITour.seenPageIDs. r=ttaubert

This commit is contained in:
Blair McBride 2014-05-29 16:38:24 +12:00
Родитель 8fd49b9c7b
Коммит 0997611d2c
2 изменённых файлов: 3 добавлений и 3 удалений

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

@ -38,7 +38,7 @@ const BUCKET_TIMESTEPS = [
]; ];
// Time after which seen Page IDs expire. // Time after which seen Page IDs expire.
const SEENPAGEID_EXPIRY = 2 * 7 * 24 * 60 * 60 * 1000; // 2 weeks. const SEENPAGEID_EXPIRY = 8 * 7 * 24 * 60 * 60 * 1000; // 8 weeks.
this.UITour = { this.UITour = {

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

@ -55,8 +55,8 @@ let tests = [
let data = JSON.stringify([ let data = JSON.stringify([
["savedID1", { lastSeen: Date.now() }], ["savedID1", { lastSeen: Date.now() }],
["savedID2", { lastSeen: Date.now() }], ["savedID2", { lastSeen: Date.now() }],
// 3 weeks ago, should auto expire. // 9 weeks ago, should auto expire.
["savedID3", { lastSeen: Date.now() - 3 * 7 * 24 * 60 * 60 * 1000 }], ["savedID3", { lastSeen: Date.now() - 9 * 7 * 24 * 60 * 60 * 1000 }],
]); ]);
Services.prefs.setCharPref("browser.uitour.seenPageIDs", Services.prefs.setCharPref("browser.uitour.seenPageIDs",
data); data);