Bug 1602757: disable process caching/preallocation while testing browser_resource_uri r=zbraniecki

Differential Revision: https://phabricator.services.mozilla.com/D76534
This commit is contained in:
Randell Jesup 2020-05-28 21:37:28 +00:00
Родитель 202278680d
Коммит 793c7e1cdd
1 изменённых файлов: 8 добавлений и 0 удалений

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

@ -24,9 +24,17 @@ L10nRegistry.registerSource(mockSource);
registerCleanupFunction(() => {
protocol.setSubstitution("l10n-test", null);
L10nRegistry.removeSource("test");
SpecialPowers.pushPrefEnv({
set: [["dom.ipc.processPrelaunch.enabled", true]],
});
});
add_task(async () => {
// Bug 1640333 - windows fails (sometimes) to ever get document.l10n.ready
// if e10s process caching is enabled
await SpecialPowers.pushPrefEnv({
set: [["dom.ipc.processPrelaunch.enabled", false]],
});
await BrowserTestUtils.withNewTab(
"resource://l10n-test/test.html",
async browser => {