browser_net_leak_on_tab_close.js (628B)
1 /* Any copyright is dedicated to the Public Domain. 2 http://creativecommons.org/publicdomain/zero/1.0/ */ 3 4 "use strict"; 5 6 /** 7 * Tests that netmonitor doesn't leak windows on parent-side pages (bug 1285638) 8 */ 9 10 add_task(async function () { 11 // Tell initNetMonitor to enable cache. Otherwise it will assert that there were more 12 // than zero network requests during the page load. But when loading about:config, 13 // there are none. 14 const { monitor } = await initNetMonitor("about:config", { 15 enableCache: true, 16 requestCount: 1, 17 }); 18 ok(monitor, "The network monitor was opened"); 19 await teardown(monitor); 20 });