Index: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/insecure-parent.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/insecure-parent.html b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/insecure-parent.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..52a066a06917b119374e0c19c2bff54686fe500a |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/insecure-parent.html |
@@ -0,0 +1,16 @@ |
+<!DOCTYPE html> |
+<meta charset="utf-8"> |
+<script src="../../resources/get-host-info.js?pipe=sub"></script> |
+<title>Page Title</title> |
+<body></body> |
+<script> |
+var iframe = document.createElement('iframe'); |
+iframe.src = get_host_info().HTTP_ORIGIN + |
+ '/serviceworker/resources/insecure-inscope.html'; |
+document.body.appendChild(iframe); |
+ |
+// The top frame messages us to message the subframe. |
+window.addEventListener('message', e => { |
+ iframe.contentWindow.postMessage(e.data, '*'); |
+ }); |
+</script> |