summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/ManualTests/print-after-window-close.html
blob: f29e39d8af60505d71a5a941e40ab6434cac4172 (plain)
1
2
3
4
5
6
7
8
9
<script>
function crash() {
    var w = window.open("data:text/html,Loading a data URL is asynchronous, so this text shouldn't appear. But it's most important to check that there is no crash after dismissing the print sheet.");
    w.document.write("SUCCESS");
    w.print();
    w.close();
}
</script>
<button onclick="crash()">Crash</button>