summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/content-security-policy/navigation/support/test_csp_self_window.sub.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/content-security-policy/navigation/support/test_csp_self_window.sub.html')
-rw-r--r--testing/web-platform/tests/content-security-policy/navigation/support/test_csp_self_window.sub.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/testing/web-platform/tests/content-security-policy/navigation/support/test_csp_self_window.sub.html b/testing/web-platform/tests/content-security-policy/navigation/support/test_csp_self_window.sub.html
new file mode 100644
index 0000000000..2f7b685a75
--- /dev/null
+++ b/testing/web-platform/tests/content-security-policy/navigation/support/test_csp_self_window.sub.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+
+<span id="escape">{{GET[window_url]}}</span>
+
+<script>
+ var window_url = document.getElementById("escape").textContent;
+ window.open(window_url, "_self");
+</script>