| Index: LayoutTests/http/tests/security/script-crossorigin-loads-cross-origin-preload.html
|
| diff --git a/LayoutTests/http/tests/security/script-crossorigin-loads-cross-origin-preload.html b/LayoutTests/http/tests/security/script-crossorigin-loads-cross-origin-preload.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0a4545f7816c6d4a3998413a2f513308b52c777b
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/security/script-crossorigin-loads-cross-origin-preload.html
|
| @@ -0,0 +1,25 @@
|
| +<!doctype html>
|
| +<html>
|
| +<body>
|
| +<p>Test that a script element with a crossorigin attribute (pre)loads a cross-origin script correctly.</p>
|
| +<pre></pre>
|
| +<script>
|
| +var result = "FAIL";
|
| +</script>
|
| +<!-- This script should preload using CORS. -->
|
| +<script crossorigin src="http://localhost:8000/security/resources/cors-script.php?cors=true&value=PASS"></script>
|
| +<script>
|
| +if (window.testRunner) {
|
| + testRunner.dumpAsText();
|
| + testRunner.waitUntilDone();
|
| +}
|
| +
|
| +function loaded() {
|
| + document.querySelector("pre").innerHTML = result;
|
| + if (window.testRunner)
|
| + testRunner.notifyDone();
|
| +}
|
| +window.onload = loaded;
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|