Bug 1573758 - Extend TTL for syncing tabs to 1 year. r=markh
authoraarushivij <aarushivij@gmail.com>
Thu, 02 Apr 2020 00:25:42 +0000
changeset 521709 bd051fd71e1cb24626db992fe079109eca9aee6f
parent 521708 7afd0c50200b0993e063c065f3b89c78afb19017
child 521710 3506ad8b3ae2d23270ed33db79cf6bb304a662a9
push id37274
push userdvarga@mozilla.com
push dateThu, 02 Apr 2020 09:51:45 +0000
treeherdermozilla-central@95ddb3213aec [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmarkh
bugs1573758
milestone76.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1573758 - Extend TTL for syncing tabs to 1 year. r=markh Differential Revision: https://phabricator.services.mozilla.com/D69278
services/sync/modules/engines/tabs.js
--- a/services/sync/modules/engines/tabs.js
+++ b/services/sync/modules/engines/tabs.js
@@ -1,15 +1,15 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 var EXPORTED_SYMBOLS = ["TabEngine", "TabSetRecord"];
 
-const TABS_TTL = 1814400; // 21 days.
+const TABS_TTL = 31622400; // 366 days (1 leap year).
 const TAB_ENTRIES_LIMIT = 5; // How many URLs to include in tab history.
 
 const { XPCOMUtils } = ChromeUtils.import(
   "resource://gre/modules/XPCOMUtils.jsm"
 );
 const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
 const { Log } = ChromeUtils.import("resource://gre/modules/Log.jsm");
 const { Store, SyncEngine, Tracker } = ChromeUtils.import(