зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1423220
- Enable tab warming by default for Nightly builds. r=dao
MozReview-Commit-ID: 8bz1U1WSzy5 --HG-- extra : rebase_source : e5068c4a0a9ac9c302c139e7cbca11fa47527ddb
This commit is contained in:
Родитель
7f9cffd5ea
Коммит
d8329d02dd
|
@ -1541,8 +1541,12 @@ pref("browser.tabs.remote.desktopbehavior", true);
|
|||
|
||||
// For speculatively warming up tabs to improve perceived
|
||||
// performance while using the async tab switcher.
|
||||
// Disabled until bug 1397426 is fixed.
|
||||
#if defined(NIGHTLY_BUILD)
|
||||
pref("browser.tabs.remote.warmup.enabled", true);
|
||||
#else
|
||||
pref("browser.tabs.remote.warmup.enabled", false);
|
||||
#endif
|
||||
|
||||
pref("browser.tabs.remote.warmup.maxTabs", 3);
|
||||
pref("browser.tabs.remote.warmup.unloadDelayMs", 2000);
|
||||
|
||||
|
|
|
@ -16,6 +16,18 @@
|
|||
const BASE_URL = "http://mochi.test:8888/browser/dom/base/test/";
|
||||
|
||||
add_task(async function() {
|
||||
// On Linux, in our test automation, the mouse cursor floats over
|
||||
// the first tab, which causes it to be warmed up when tab warming
|
||||
// is enabled. The TabSwitchDone event doesn't fire until the warmed
|
||||
// tab is evicted, which is after a few seconds. That means that
|
||||
// this test ends up taking longer than we'd like, since its waiting
|
||||
// for the TabSwitchDone event between tab switches.
|
||||
//
|
||||
// So now we make sure that warmed tabs are evicted very shortly
|
||||
// after warming to avoid the test running too long.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["browser.tabs.remote.warmup.unloadDelayMs", 50]],
|
||||
});
|
||||
await testLinkClick(false, false);
|
||||
await testLinkClick(false, true);
|
||||
await testLinkClick(true, false);
|
||||
|
|
Загрузка…
Ссылка в новой задаче