2 <?xml-stylesheet href=
"chrome://global/skin/global.css" type=
"text/css"?>
3 <window xmlns=
"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:
html=
"http://www.w3.org/1999/xhtml">
4 <script src=
"chrome://mochikit/content/tests/SimpleTest/SimpleTest.js" />
6 SimpleTest.waitForExplicitFinish();
7 let chromeWindow = browsingContext.topChromeWindow;
11 chromeWindow.moduleScriptRan = function() {
12 ok(true,
"Module script executed: " + ++i)
19 return new Promise(r =
> {
20 currentWin = chromeWindow.open(
"window_bug1686822.xhtml",
"",
"chrome");
28 // The first and second loads are different so make sure we test both code paths.
31 delete chromeWindow.moduleScriptRan;