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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/link-crossorigin-preload-use-credentials.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-use-credentials.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/link-crossorigin-preload-use-credentials.html b/third_party/WebKit/LayoutTests/http/tests/security/link-crossorigin-preload-use-credentials.html
index b0589cdb4c18a820b1b5bfe8dd1191daa69d8b2e..373f248704f2b22e011bc94abf49f7f86de869b9 100644
--- a/third_party/WebKit/LayoutTests/http/tests/security/link-crossorigin-preload-use-credentials.html
+++ b/third_party/WebKit/LayoutTests/http/tests/security/link-crossorigin-preload-use-credentials.html
@@ -12,11 +12,12 @@
var credentialSpecificDynamicLoad = false;
var credentialStarDynamicError = false;
</script>
-<link crossorigin="use-credentials" rel="preload" href="http://localhost:8080/security/resources/abe-allow-credentials.php" onload="credentialSpecificMarkupLoad = true;">
-<link crossorigin="use-credentials" rel="preload" href="http://localhost:8080/security/resources/abe-allow-star.php" onerror="credentialStarMarkupError = true;">
+<link crossorigin="use-credentials" rel="preload" as="fetch" href="http://localhost:8080/security/resources/abe-allow-credentials.php" onload="credentialSpecificMarkupLoad = true;">
+<link crossorigin="use-credentials" rel="preload" as="fetch" href="http://localhost:8080/security/resources/abe-allow-star.php" onerror="credentialStarMarkupError = true;">
<script>
var link = document.createElement("link");
link.rel = "preload";
+ link.as = "fetch";
link.crossOrigin = "anonymous";
link.addEventListener("load", function() { credentialSpecificDynamicLoad = true; });
link.href = "http://localhost:8080/security/resources/abe-allow-credentials.php?1";
@@ -24,6 +25,7 @@
link = document.createElement("link");
link.rel = "preload";
+ link.as = "fetch";
link.crossOrigin = "use-credentials";
link.addEventListener("error", function() { credentialStarDynamicError = true; });
link.href = "http://localhost:8080/security/resources/abe-allow-star.php?1";

Powered by Google App Engine
This is Rietveld 408576698