| Index: third_party/WebKit/LayoutTests/http/tests/security/cors-rfc1918/resources/post-addressspace-to-parent.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/security/cors-rfc1918/resources/post-addressspace-to-parent.html b/third_party/WebKit/LayoutTests/http/tests/security/cors-rfc1918/resources/post-addressspace-to-parent.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e7758a5fed0101b833335a87017e042d1d6a4b38
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/security/cors-rfc1918/resources/post-addressspace-to-parent.html
|
| @@ -0,0 +1,13 @@
|
| +<script>
|
| + if (window.location.search == "?csp") {
|
| + var m = document.createElement("meta");
|
| + m.setAttribute("http-equiv", "Content-Security-Policy");
|
| + m.setAttribute("content", "treat-as-public-address");
|
| + document.head.appendChild(m);
|
| + }
|
| +
|
| + window.parent.postMessage({
|
| + "origin": window.location.origin,
|
| + "addressSpace": document.addressSpace
|
| + }, "*");
|
| +</script>
|
|
|