| 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>
|
|
|