summaryrefslogtreecommitdiffstats
path: root/docshell/test/mochitest/file_redirect_history.html
diff options
context:
space:
mode:
Diffstat (limited to 'docshell/test/mochitest/file_redirect_history.html')
-rw-r--r--docshell/test/mochitest/file_redirect_history.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/docshell/test/mochitest/file_redirect_history.html b/docshell/test/mochitest/file_redirect_history.html
new file mode 100644
index 0000000000..3971faf4fd
--- /dev/null
+++ b/docshell/test/mochitest/file_redirect_history.html
@@ -0,0 +1,18 @@
+<html>
+ <head>
+ <script>
+ function loaded() {
+ addEventListener("message", ({ data }) => {
+ document.getElementById("form").action = data;
+ document.getElementById("button").click();
+ }, { once: true });
+ opener.postMessage("loaded", "*");
+ }
+ </script>
+ </head>
+ <body onload="loaded();">
+ <form id="form" method="POST">
+ <input id="button" type="submit" />
+ </form>
+ </body>
+</html>