зеркало из https://github.com/mozilla/pjs.git
Bug 644424 - Reduce the remote tabs refresh delay and add a pref for it [r=mbrubeck]
This commit is contained in:
Родитель
cfa0c40f2d
Коммит
5e279febab
|
@ -131,6 +131,9 @@ pref("network.buffer.cache.size", 16384);
|
|||
/* history max results display */
|
||||
pref("browser.display.history.maxresults", 100);
|
||||
|
||||
/* How many times should have passed before the remote tabs list is refreshed */
|
||||
pref("browser.display.remotetabs.timeout", 10);
|
||||
|
||||
/* session history */
|
||||
pref("browser.sessionhistory.max_total_viewers", 1);
|
||||
pref("browser.sessionhistory.max_entries", 50);
|
||||
|
|
|
@ -1384,7 +1384,7 @@
|
|||
// Don't bother refetching tabs if we already did so recently
|
||||
let lastFetch = Weave.Svc.Prefs.get("lastTabFetch", 0);
|
||||
let now = Math.floor(Date.now() / 1000);
|
||||
if (now - lastFetch >= 30) {
|
||||
if (now - lastFetch >= Services.prefs.getIntPref("browser.display.remotabs.timeout")) {
|
||||
// Force a sync only for the tabs engine
|
||||
engine.lastModified = null;
|
||||
engine.sync();
|
||||
|
|
Загрузка…
Ссылка в новой задаче