Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
type="text/css"?>
<div id="content" style="display: none"/>
</body>
<script>
SimpleTest.waitForExplicitFinish();
let chromeWindow = window.browsingContext.topChromeWindow;
var attempts = 0;
chromeWindow.update = function () {
// without the crash fix, this usually crashes after 2 to 4 reloads
if (++attempts == 6) {
ok(true, "didn't crash after 6 attempts");
otherWindow.close();
SimpleTest.waitForFocus(function() {
chromeWindow.update = null;
SimpleTest.finish();
});
} else {
otherWindow.document.commandDispatcher.updateCommands('');
setTimeout(function() {
otherWindow.location.reload()
}, 0);
}
}
var otherWindow = chromeWindow.open("window_bug583948.xhtml", "_blank", "chrome");
</script>
</window>