Bug 1585727, ensure browser_preferences_usage.js is fission compatible r=mconley

Differential Revision: https://phabricator.services.mozilla.com/D47945

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Emma Malysz 2019-10-04 18:09:01 +00:00
Родитель cda6d84e6e
Коммит 337d6db7d1
2 изменённых файлов: 19 добавлений и 1 удалений

Просмотреть файл

@ -19,7 +19,6 @@ support-files =
[browser_appmenu.js]
skip-if = asan || debug || (os == 'win' && bits == 32) || (os == 'win' && processor == 'aarch64') # Bug 1382809, bug 1369959, Win32 because of intermittent OOM failures, bug 1533141 for aarch64
[browser_preferences_usage.js]
fail-if = fission
skip-if = !debug
[browser_startup.js]
[browser_startup_content.js]

Просмотреть файл

@ -132,6 +132,11 @@ add_task(async function startup() {
},
};
if (SpecialPowers.useRemoteSubframes) {
// Bug 1585732 - Number of accesses with Fission enabled is higher than without.
max = 50;
}
let startupRecorder = Cc["@mozilla.org/test/startuprecorder;1"].getService()
.wrappedJSObject;
await startupRecorder.done;
@ -210,6 +215,20 @@ add_task(async function navigate_around() {
},
};
if (SpecialPowers.useRemoteSubframes) {
// Bug 1585732 - Number of accesses with Fission enabled is higher than without.
max = 50;
whitelist = Object.assign(
{
"fission.rebuild_frameloaders_on_remoteness_change": {
min: 1,
max: 100,
},
},
whitelist
);
}
Services.prefs.resetStats();
let tab = await BrowserTestUtils.openNewForegroundTab(