1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <script src=
"../../resources/js-test.js"></script>
7 <iframe id=
"aframe"></iframe>
9 description("Test that explicitly closing the document while it is already closing doesn't result in running the end twice.");
11 var frameDocument
= document
.getElementById("aframe").contentDocument
;
13 frameDocument
.onreadystatechange = function()
15 debug(frameDocument
.readyState
);
16 frameDocument
.close();
18 frameDocument
.write("<script>document.close()</scr"+"ipt>");