Test for bug 696651 part 1 - Deal more gracefully with the parser getting terminated during document.write() and with document.close() getting called while document.write() is on the call stack. r=Olli.Pettay.

This commit is contained in:
Henri Sivonen 2011-10-29 23:14:31 +03:00
parent 84c70e7604
commit e4e0cf65df
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<script>
function runTest() {
var iframe = document.getElementsByTagName("iframe")[0];
var doc = iframe.contentDocument;
doc.write("\u003cscript>document.close();\u003c/script>foo");
}
</script>
<body onload="runTest();">
<iframe></iframe>

View File

@ -47,3 +47,4 @@ load 574884-1.html
load 574884-2.html
load 591330-1.html
load 650501-1.xhtml
load 696651-1.html