docshell/test/file_pushState_after_document_open.html
author Hrishikesh Barman <hrishikeshbman@gmail.com>
Fri, 24 Mar 2017 19:14:16 +0530
changeset 349511 adb38e68486ec6f5b8114d776c2f806dac7c536b
parent 163150 863b9cd6c44deef792909adaff2c4343a547418e
child 439120 58adc643dcdc20eccb4d30bc454b50420e96c020
permissions -rw-r--r--
Bug 1349905 - Make _beginRemoveTab consistently return a boolean. r=dao

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