WebCore/manual-tests/new-window-subresource-crash.html
changeset 0 4f2f89ce4247
equal deleted inserted replaced
-1:000000000000 0:4f2f89ce4247
       
     1 <body onload="test()">
       
     2 <script>
       
     3     function test()
       
     4     {
       
     5         var win = window.open("");
       
     6         var doc = win.document;
       
     7         var text = "<html><body><sc" + "ript src='data:text/javascript,'></scr" + "ipt></body></html>";
       
     8         doc.write(text);
       
     9     }
       
    10 </script>
       
    11 
       
    12 <p>This test verifies that document.writing into a newly-opened empty
       
    13 window does not cause crashes or assertion failures, even if it
       
    14 triggers subresource loads. If you have popup blocking enabled you can
       
    15 click the button below to test. The test only works in Safari, because
       
    16 it depends on behavior with resource identifiers, which are provided
       
    17 by the app.</p>
       
    18 
       
    19 <button onclick="test()">Crash</button>
       
    20 </body>