Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/link-crossorigin-preload-no-cors.html

Issue 2903653005: [preload] Mandatory `as` value and related spec alignments (Closed)
Patch Set: IDL changes Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698