| Index: LayoutTests/http/tests/security/link-crossorigin-stylesheet-import-anonymous.html
|
| diff --git a/LayoutTests/http/tests/security/link-crossorigin-stylesheet-anonymous.html b/LayoutTests/http/tests/security/link-crossorigin-stylesheet-import-anonymous.html
|
| similarity index 59%
|
| copy from LayoutTests/http/tests/security/link-crossorigin-stylesheet-anonymous.html
|
| copy to LayoutTests/http/tests/security/link-crossorigin-stylesheet-import-anonymous.html
|
| index 544ae72e69de441bf9b36a8f539bbff4b7d47d06..cb917b3df0bf20b602f9af3472170918cb3a64bf 100644
|
| --- a/LayoutTests/http/tests/security/link-crossorigin-stylesheet-anonymous.html
|
| +++ b/LayoutTests/http/tests/security/link-crossorigin-stylesheet-import-anonymous.html
|
| @@ -3,12 +3,13 @@
|
| <head>
|
| <script src="/js-test-resources/js-test.js"></script>
|
| <script>
|
| -description("Test that a linked stylesheet with a crossorigin=anonymous attribute loads a CORS enabled resource.");
|
| +description("Test that CORS-fetched stylesheets (crossorigin=anonymous) handle @import as expected.");
|
| +
|
| +window.testCount = 3;
|
| </script>
|
| <script src="resources/link-crossorigin-common.js"></script>
|
| </head>
|
| -<link crossorigin="anonymous" rel="stylesheet" href="http://localhost:8080/security/resources/green-background-allow-star.php" onload="pass()" onerror="fail()">
|
| -<link crossorigin="anonymous" rel="stylesheet" href="http://localhost:8080/security/resources/green-background-allow-credentials.php" onload="pass()" onerror="fail()">
|
| +<link crossorigin="anonymous" rel="stylesheet" href="http://localhost:8080/security/resources/green-background-allow-star-import.php?1" onload="pass(event)" onerror="fail(event)">
|
| <script>
|
| function runTest()
|
| {
|
| @@ -18,15 +19,15 @@ function runTest()
|
| link.crossOrigin = "anonymous";
|
| link.onload = pass;
|
| link.onerror = fail;
|
| - link.href = "http://localhost:8080/security/resources/green-background-allow-star.php";
|
| + link.href = "http://localhost:8000/security/resources/green-background-allow-star-import.php?2";
|
| document.body.appendChild(link);
|
|
|
| link = document.createElement("link");
|
| link.rel = "stylesheet";
|
| - link.crossOrigin = "use-credentials";
|
| + link.crossOrigin = "anonymous";
|
| link.onload = pass;
|
| link.onerror = fail;
|
| - link.href = "http://localhost:8080/security/resources/green-background-allow-credentials.php";
|
| + link.href = "http://localhost:8080/security/resources/green-background-allow-star-import.php?3";
|
| document.body.appendChild(link);
|
| }
|
| window.onload = runTest;
|
|
|