Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/cors-rfc1918/resources/post-addressspace-to-parent-with-appcache.html

Issue 1772303002: CORS-RFC1918: Teach appcache responses to passthrough their socket address. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/security/cors-rfc1918/resources/appcache.php ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/security/cors-rfc1918/resources/appcache.php ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698