1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/docshell/test/file_pushState_after_document_open.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,11 @@ 1.4 +<!DOCTYPE html> 1.5 +<script> 1.6 + document.addEventListener("DOMContentLoaded", function() { 1.7 + document.open(); 1.8 + document.write("<!DOCTYPE html>New Document here"); 1.9 + document.close(); 1.10 + // Notify parent via postMessage, since otherwise exceptions will not get 1.11 + // caught by its onerror handler. 1.12 + parent.postMessage("doTest", "*"); 1.13 + }); 1.14 +</script>