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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/suborigins/resources/suborigin-foreign-fetch-service-worker-iframe.php

Issue 2770213002: Add LayoutTest for a bug of Suborigin and MemoryCache and ForeignFetch
Patch Set: Created 3 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
Index: third_party/WebKit/LayoutTests/http/tests/security/suborigins/resources/suborigin-foreign-fetch-service-worker-iframe.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/suborigins/resources/suborigin-foreign-fetch-service-worker-iframe.php b/third_party/WebKit/LayoutTests/http/tests/security/suborigins/resources/suborigin-foreign-fetch-service-worker-iframe.php
new file mode 100644
index 0000000000000000000000000000000000000000..9298d027a7fb4094c6cd964174bc8da46a0c158c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/security/suborigins/resources/suborigin-foreign-fetch-service-worker-iframe.php
@@ -0,0 +1,17 @@
+<?php
+ header("Suborigin: testsubdomain");
+?>
+<!DOCTYPE html>
+<script src = "/resources/get-host-info.js?pipe=sub"></script>
+<body>
+<script>
+var run = data => {
+ parent.postMessage(data, '*');
+};
+var script = document.createElement('script');
+var host_info = get_host_info();
+script.src = host_info['HTTP_REMOTE_ORIGIN'] +
+ '/security/suborigins/resources/sw-scope/test.js';
+document.body.appendChild(script);
+</script>
+</body>

Powered by Google App Engine
This is Rietveld 408576698