summaryrefslogtreecommitdiffstats
path: root/docshell/test/file_pushState_after_document_open.html
diff options
context:
space:
mode:
Diffstat (limited to 'docshell/test/file_pushState_after_document_open.html')
-rw-r--r--docshell/test/file_pushState_after_document_open.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/docshell/test/file_pushState_after_document_open.html b/docshell/test/file_pushState_after_document_open.html
new file mode 100644
index 000000000..97a6954f2
--- /dev/null
+++ b/docshell/test/file_pushState_after_document_open.html
@@ -0,0 +1,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>