| Index: third_party/WebKit/LayoutTests/http/tests/security/link-crossorigin-preload-no-cors.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/security/link-crossorigin-preload-no-cors.html b/third_party/WebKit/LayoutTests/http/tests/security/link-crossorigin-preload-no-cors.html
|
| index b6e9a2c79335b9c6dd900ead02e1cd73c67c6e69..6b150f9651b20e4f24c3cfb9b75149211e27ee2d 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/security/link-crossorigin-preload-no-cors.html
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/security/link-crossorigin-preload-no-cors.html
|
| @@ -12,13 +12,14 @@
|
| var anonymousDynamicError = false;
|
| var credentialsDynamicError = false;
|
| </script>
|
| -<link crossorigin="anonymous" rel="preload" href="http://localhost:8000/security/resources/abe.png?1" onerror="anonymousMarkupError = true;">
|
| -<link crossorigin="use-credentials" rel="preload" href="http://localhost:8000/security/resources/abe.png?2" onerror="credentialsMarkupError = true;">
|
| +<link crossorigin="anonymous" rel="preload" as="fetch" href="http://localhost:8000/security/resources/abe.png?1" onerror="anonymousMarkupError = true;">
|
| +<link crossorigin="use-credentials" rel="preload" as="fetch" href="http://localhost:8000/security/resources/abe.png?2" onerror="credentialsMarkupError = true;">
|
| <script>
|
| // Test that dynamically inserted <link> elements are handled the same way.
|
| var link = document.createElement("link");
|
| link.crossOrigin = "anonymous";
|
| link.rel = "preload";
|
| + link.as = "fetch";
|
| link.addEventListener("error", function() { anonymousDynamicError = true; });
|
| link.href = "http://localhost:8000/security/resources/abe.png?3";
|
| document.body.appendChild(link);
|
| @@ -26,6 +27,7 @@
|
| link = document.createElement("link");
|
| link.crossOrigin = "use-credentials";
|
| link.rel = "preload";
|
| + link.as = "fetch";
|
| link.addEventListener("error", function() { credentialsDynamicError = true; });
|
| link.href = "http://localhost:8000/security/resources/abe.png?4";
|
| document.body.appendChild(link);
|
|
|