зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1014460 - Extend the retention period of UITour.seenPageIDs. r=ttaubert
This commit is contained in:
Родитель
8fd49b9c7b
Коммит
0997611d2c
|
@ -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);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче