summaryrefslogtreecommitdiffstats
path: root/docshell/test/mochitest/file_pushState_after_document_open.html
blob: 97a6954f2eeb2d4bdfc0ef5bc09cc8ed0baf6778 (plain)
1
2
3
4
5
6
7
8
9
10
11
<!DOCTYPE html>
<script>
  document.addEventListener("DOMContentLoaded", function() {
    document.open();
    document.write("<!DOCTYPE html>New Document here");
    document.close();
    // Notify parent via postMessage, since otherwise exceptions will not get
    // caught by its onerror handler.
    parent.postMessage("doTest", "*");
  });
</script>