summaryrefslogtreecommitdiffstats
path: root/uriloader/exthandler/tests/mochitest/script_redirect.html
diff options
context:
space:
mode:
Diffstat (limited to 'uriloader/exthandler/tests/mochitest/script_redirect.html')
-rw-r--r--uriloader/exthandler/tests/mochitest/script_redirect.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/uriloader/exthandler/tests/mochitest/script_redirect.html b/uriloader/exthandler/tests/mochitest/script_redirect.html
new file mode 100644
index 0000000000..31e0dc6a7e
--- /dev/null
+++ b/uriloader/exthandler/tests/mochitest/script_redirect.html
@@ -0,0 +1,5 @@
+<script>
+ let params = new URL(document.location).searchParams;
+ let uri = params.get("uri");
+ document.location = uri;
+</script>