diff options
Diffstat (limited to 'WebCore/manual-tests/new-window-subresource-crash.html')
-rw-r--r-- | WebCore/manual-tests/new-window-subresource-crash.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/WebCore/manual-tests/new-window-subresource-crash.html b/WebCore/manual-tests/new-window-subresource-crash.html new file mode 100644 index 0000000..b287d90 --- /dev/null +++ b/WebCore/manual-tests/new-window-subresource-crash.html @@ -0,0 +1,20 @@ +<body onload="test()"> +<script> + function test() + { + var win = window.open(""); + var doc = win.document; + var text = "<html><body><sc" + "ript src='data:text/javascript,'></scr" + "ipt></body></html>"; + doc.write(text); + } +</script> + +<p>This test verifies that document.writing into a newly-opened empty +window does not cause crashes or assertion failures, even if it +triggers subresource loads. If you have popup blocking enabled you can +click the button below to test. The test only works in Safari, because +it depends on behavior with resource identifiers, which are provided +by the app.</p> + +<button onclick="test()">Crash</button> +</body> |