browser_very_fission.js (885B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 "use strict"; 6 7 // This test creates a large number of content processes as a 8 // regression test for bug 1635451. 9 10 const TEST_PAGE = 11 "http://mochi.test:8888/browser/dom/ipc/tests/file_dummy.html"; 12 13 const NUM_TABS = 256; 14 15 add_task(async () => { 16 let promises = []; 17 for (let i = 0; i < NUM_TABS; ++i) { 18 promises.push( 19 BrowserTestUtils.openNewForegroundTab({ 20 gBrowser, 21 opening: TEST_PAGE, 22 waitForLoad: true, 23 forceNewProcess: true, 24 }) 25 ); 26 } 27 28 let tabs = []; 29 for (const p of promises) { 30 tabs.push(await p); 31 } 32 33 ok(true, "All of the tabs loaded"); 34 35 for (const t of tabs) { 36 BrowserTestUtils.removeTab(t); 37 } 38 });