Refactor ZenTabUnloader to remove unused code and optimize tab unloading timeout

This commit is contained in:
mauro-balades 2024-09-27 18:12:49 +02:00
parent 1fa61f4349
commit 9ae3de71e7

View file

@ -1,8 +1,5 @@
{ {
const ZEN_TAB_UNLOADER_PREF = "zen.tab-unloader.enabled";
const ZEN_TAB_UNLOADER_TIMEOUT_PREF = "zen.tab-unloader.timeout";
const lazy = {}; const lazy = {};
XPCOMUtils.defineLazyPreferenceGetter( XPCOMUtils.defineLazyPreferenceGetter(
@ -16,7 +13,7 @@
lazy, lazy,
"zenTabUnloaderTimeout", "zenTabUnloaderTimeout",
"zen.tab-unloader.timeout-minutes", "zen.tab-unloader.timeout-minutes",
5 20
); );
XPCOMUtils.defineLazyPreferenceGetter( XPCOMUtils.defineLazyPreferenceGetter(