mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
84c70e7604
commit
e4e0cf65df
11
parser/htmlparser/tests/crashtests/696651-1.html
Normal file
11
parser/htmlparser/tests/crashtests/696651-1.html
Normal 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>
|
||||
|
@ -47,3 +47,4 @@ load 574884-1.html
|
||||
load 574884-2.html
|
||||
load 591330-1.html
|
||||
load 650501-1.xhtml
|
||||
load 696651-1.html
|
||||
|
Loading…
Reference in New Issue
Block a user