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