gecko/tools/performance/startup/open10Windows.xul

32 lines
963 B
XML

<?xml version="1.0"?> <!-- -*- Mode: HTML -*- -->
<!DOCTYPE window>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
id="open10Windows"
onload="onload();">
<script type="application/javascript">
<![CDATA[
const n = 11;
var sub = [];
function onload() {
var i = n;
while( i-- ) {
window.setTimeout( 'sub[n] = openMiniXul();', i*1000 );
}
window.setTimeout( 'shutDown();', n*1000 );
}
function openMiniXul(n) {
return window.openDialog("chrome://navigator/content/miniXul.xul","_blank","","chrome,all");
}
function shutDown() {
var i = n;
while( i-- ) {
sub[i].close();
}
window.close();
}
]]>
</script>
</window>