summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/upgrade-insecure-requests/link-upgrade/resources
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/upgrade-insecure-requests/link-upgrade/resources')
-rw-r--r--testing/web-platform/tests/upgrade-insecure-requests/link-upgrade/resources/click-on-link.sub.html10
-rw-r--r--testing/web-platform/tests/upgrade-insecure-requests/link-upgrade/resources/dummy.html1
-rw-r--r--testing/web-platform/tests/upgrade-insecure-requests/link-upgrade/resources/navigate-top-frame-upgrade.sub.html5
-rw-r--r--testing/web-platform/tests/upgrade-insecure-requests/link-upgrade/resources/navigate-top-frame-upgrade.sub.html.headers1
-rw-r--r--testing/web-platform/tests/upgrade-insecure-requests/link-upgrade/resources/navigate-top-frame.sub.html5
-rw-r--r--testing/web-platform/tests/upgrade-insecure-requests/link-upgrade/resources/post-message-to-opener.sub.html3
6 files changed, 25 insertions, 0 deletions
diff --git a/testing/web-platform/tests/upgrade-insecure-requests/link-upgrade/resources/click-on-link.sub.html b/testing/web-platform/tests/upgrade-insecure-requests/link-upgrade/resources/click-on-link.sub.html
new file mode 100644
index 0000000000..d2899c8873
--- /dev/null
+++ b/testing/web-platform/tests/upgrade-insecure-requests/link-upgrade/resources/click-on-link.sub.html
@@ -0,0 +1,10 @@
+<body>
+ coucou
+ <a href="{{GET[url]}}">Click me</a>
+</body>
+
+<script>
+ window.addEventListener("load", function() {
+ document.getElementsByTagName("a")[0].click();
+ })
+</script>
diff --git a/testing/web-platform/tests/upgrade-insecure-requests/link-upgrade/resources/dummy.html b/testing/web-platform/tests/upgrade-insecure-requests/link-upgrade/resources/dummy.html
new file mode 100644
index 0000000000..1c56b51665
--- /dev/null
+++ b/testing/web-platform/tests/upgrade-insecure-requests/link-upgrade/resources/dummy.html
@@ -0,0 +1 @@
+I am not an interesting file...
diff --git a/testing/web-platform/tests/upgrade-insecure-requests/link-upgrade/resources/navigate-top-frame-upgrade.sub.html b/testing/web-platform/tests/upgrade-insecure-requests/link-upgrade/resources/navigate-top-frame-upgrade.sub.html
new file mode 100644
index 0000000000..35332900d1
--- /dev/null
+++ b/testing/web-platform/tests/upgrade-insecure-requests/link-upgrade/resources/navigate-top-frame-upgrade.sub.html
@@ -0,0 +1,5 @@
+<script>
+ window.addEventListener("load", function() {
+ window.top.location.href = "{{GET[url]}}";
+ })
+</script>
diff --git a/testing/web-platform/tests/upgrade-insecure-requests/link-upgrade/resources/navigate-top-frame-upgrade.sub.html.headers b/testing/web-platform/tests/upgrade-insecure-requests/link-upgrade/resources/navigate-top-frame-upgrade.sub.html.headers
new file mode 100644
index 0000000000..602d9dc38d
--- /dev/null
+++ b/testing/web-platform/tests/upgrade-insecure-requests/link-upgrade/resources/navigate-top-frame-upgrade.sub.html.headers
@@ -0,0 +1 @@
+Content-Security-Policy: upgrade-insecure-requests
diff --git a/testing/web-platform/tests/upgrade-insecure-requests/link-upgrade/resources/navigate-top-frame.sub.html b/testing/web-platform/tests/upgrade-insecure-requests/link-upgrade/resources/navigate-top-frame.sub.html
new file mode 100644
index 0000000000..35332900d1
--- /dev/null
+++ b/testing/web-platform/tests/upgrade-insecure-requests/link-upgrade/resources/navigate-top-frame.sub.html
@@ -0,0 +1,5 @@
+<script>
+ window.addEventListener("load", function() {
+ window.top.location.href = "{{GET[url]}}";
+ })
+</script>
diff --git a/testing/web-platform/tests/upgrade-insecure-requests/link-upgrade/resources/post-message-to-opener.sub.html b/testing/web-platform/tests/upgrade-insecure-requests/link-upgrade/resources/post-message-to-opener.sub.html
new file mode 100644
index 0000000000..5cf2df5732
--- /dev/null
+++ b/testing/web-platform/tests/upgrade-insecure-requests/link-upgrade/resources/post-message-to-opener.sub.html
@@ -0,0 +1,3 @@
+<script>
+ top.opener.postMessage("{{GET[message]}}", "*");
+</script>