Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/fetch-request-with-gc-iframe.html |
| diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/fetch-request-with-gc-iframe.html b/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/fetch-request-with-gc-iframe.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..68804f5cc957f7e30e50b45305c7657cca2d130e |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/fetch-request-with-gc-iframe.html |
| @@ -0,0 +1,12 @@ |
| +<!doctype html> |
| +<script src="../../../resources/get-host-info.js?pipe=sub"></script> |
| +<script src="../../resources/test-helpers.js"></script> |
| +<script> |
| +window.addEventListener('message', event => { |
| + const port = event.ports[0]; |
| + const url = get_host_info()['HTTP_ORIGIN'] + base_path(); |
|
falken
2016/06/02 08:36:31
do you need the get_host_info stuff? can it just b
yhirano
2016/06/02 10:10:11
Done.
|
| + fetch(url, {method: 'POST', body: 'hello'}) |
| + .then(() => port.postMessage({results: 'finish'})) |
| + .catch(e => port.postMessage({results: 'failure:' + e})); |
| + }); |
| +</script> |