diff options
Diffstat (limited to 'testing/web-platform/tests/cors/resources/preflight-cache-partitioning.sub.html')
-rw-r--r-- | testing/web-platform/tests/cors/resources/preflight-cache-partitioning.sub.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/web-platform/tests/cors/resources/preflight-cache-partitioning.sub.html b/testing/web-platform/tests/cors/resources/preflight-cache-partitioning.sub.html new file mode 100644 index 0000000000..e4bbdec013 --- /dev/null +++ b/testing/web-platform/tests/cors/resources/preflight-cache-partitioning.sub.html @@ -0,0 +1,20 @@ +<!doctype html> +<meta charset="utf-8"> +<title>Helper page for testing preflight cache partitioning</title> +<iframe id="iframe" src="http://{{host}}:{{ports[http][0]}}/cors/resources/preflight-cache-partitioning-iframe.sub.html"></iframe> +<script> +window.onmessage = (e) => { + switch (e.data.type || "") { + case "pass": + case "fail": + case "loaded": + opener.postMessage(e.data, "*"); + break; + default: + let iframe = document.getElementById("iframe"); + iframe.contentWindow.postMessage(e.data, "*"); + break; + } +}; + +</script> |