{
currentWin = chromeWindow.open("window_bug1686822.xhtml", "", "chrome");
resolve = r;
}).then(function() {
currentWin.close();
});
}
(async function() {
// The first and second loads are different so make sure we test both code paths.
await testOnce();
await testOnce();
delete chromeWindow.moduleScriptRan;
SimpleTest.finish();
}());
]]>