| Index: third_party/WebKit/LayoutTests/http/tests/security/cors-rfc1918/resources/post-addressspace-to-parent-with-appcache.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/security/cors-rfc1918/resources/post-addressspace-to-parent-with-appcache.html b/third_party/WebKit/LayoutTests/http/tests/security/cors-rfc1918/resources/post-addressspace-to-parent-with-appcache.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..cf75676a64ed7677341643a0c78addc985552315
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/security/cors-rfc1918/resources/post-addressspace-to-parent-with-appcache.html
|
| @@ -0,0 +1,16 @@
|
| +<html manifest="/security/cors-rfc1918/resources/appcache.php">
|
| +<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.applicationCache.oncached = window.applicationCache.onnoupdate = function (e) {
|
| + window.parent.postMessage({
|
| + "origin": window.location.origin,
|
| + "addressSpace": document.addressSpace
|
| + }, "*");
|
| + }
|
| +</script>
|
|
|