WebCore/manual-tests/new-window-subresource-crash.html
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 04 Oct 2010 01:32:07 +0300
changeset 2 303757a437d3
parent 0 4f2f89ce4247
permissions -rw-r--r--
Revision: 201037 Kit: 201039

<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>