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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/link-crossorigin-preload-anonymous.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-anonymous.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/link-crossorigin-preload-anonymous.html b/third_party/WebKit/LayoutTests/http/tests/security/link-crossorigin-preload-anonymous.html
index 8cd4785480bcd05ee564731540c02a1e71e59999..7452937826a2929500039f83f20d0c8203ec285f 100644
--- a/third_party/WebKit/LayoutTests/http/tests/security/link-crossorigin-preload-anonymous.html
+++ b/third_party/WebKit/LayoutTests/http/tests/security/link-crossorigin-preload-anonymous.html
@@ -12,12 +12,13 @@
var anonymousDynamicLoad = false;
var credentialsDynamicLoad = false;
</script>
-<link crossorigin="anonymous" rel="preload" href="http://localhost:8080/security/resources/abe-allow-star.php" onload="anonymousMarkupLoad = true;">
-<link crossorigin="anonymous" rel="preload" href="http://localhost:8080/security/resources/abe-allow-credentials.php" onload="credentialsMarkupLoad = true;">
+<link crossorigin="anonymous" rel="preload" as="fetch" href="http://localhost:8080/security/resources/abe-allow-star.php" onload="anonymousMarkupLoad = true;">
+<link crossorigin="anonymous" rel="preload" as="fetch" href="http://localhost:8080/security/resources/abe-allow-credentials.php" onload="credentialsMarkupLoad = true;">
<script>
// Test that dynamically inserted <link> elements are handled the same way.
var link = document.createElement("link");
link.rel = "preload";
+ link.as = "fetch";
link.crossOrigin = "anonymous";
link.addEventListener("load", function() { anonymousDynamicLoad = true; });
link.href = "http://localhost:8080/security/resources/abe-allow-star.php?1";
@@ -25,6 +26,7 @@
link = document.createElement("link");
link.rel = "preload";
+ link.as = "fetch";
link.crossOrigin = "anonymous";
link.addEventListener("load", function() { credentialsDynamicLoad = true; });
link.href = "http://localhost:8080/security/resources/abe-allow-credentials.php?1";

Powered by Google App Engine
This is Rietveld 408576698