summaryrefslogtreecommitdiffstats
path: root/dom/serviceworkers/test/fetch/upgrade-insecure/embedder.html
diff options
context:
space:
mode:
Diffstat (limited to 'dom/serviceworkers/test/fetch/upgrade-insecure/embedder.html')
-rw-r--r--dom/serviceworkers/test/fetch/upgrade-insecure/embedder.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/dom/serviceworkers/test/fetch/upgrade-insecure/embedder.html b/dom/serviceworkers/test/fetch/upgrade-insecure/embedder.html
new file mode 100644
index 0000000000..e99209aa4d
--- /dev/null
+++ b/dom/serviceworkers/test/fetch/upgrade-insecure/embedder.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<script>
+ window.onmessage = function(e) {
+ window.parent.postMessage(e.data, "*");
+ if (e.data.status == "protocol") {
+ document.querySelector("iframe").src = "image.html";
+ }
+ };
+</script>
+<iframe src="http://example.com/tests/dom/serviceworkers/test/fetch/upgrade-insecure/index.html"></iframe>