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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/link-crossorigin-subresource-anonymous.html

Issue 1647813003: Remove support for <link rel=subresource> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed and deleted tests Created 4 years, 10 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
Yoav Weiss 2016/01/28 14:36:02 The "security" tests are removed, but will be rein
2 <html>
3 <head>
4 <script src="/js-test-resources/js-test.js"></script>
5 </head>
6 <body>
7 <script>
8 description("Test that a subresource with a crossorigin=anonymous loads a CORS e nabled resource.");
9 </script>
10 <script src="resources/link-crossorigin-common.js"></script>
11 <link crossorigin="anonymous" rel="subresource" href="http://localhost:8080/secu rity/resources/abe-allow-star.php" onload="pass()" onerror="fail()">
12 <link crossorigin="anonymous" rel="subresource" href="http://localhost:8080/secu rity/resources/abe-allow-credentials.php" onload="pass()" onerror="fail()">
13 <script>
14 function runTest()
15 {
16 // Test that dynamically inserted <link> elements are handled the same way.
17 var link = document.createElement("link");
18 link.rel = "subresource";
19 link.crossOrigin = "anonymous";
20 link.onload = pass;
21 link.onerror = fail;
22 link.href = "http://localhost:8080/security/resources/abe-allow-star.php?1";
23 document.body.appendChild(link);
24
25 link = document.createElement("link");
26 link.rel = "subresource";
27 link.crossOrigin = "anonymous";
28 link.onload = pass;
29 link.onerror = fail;
30 link.href = "http://localhost:8080/security/resources/abe-allow-credentials. php?1";
31 document.body.appendChild(link);
32 }
33 window.onload = runTest;
34 </script>
35 </body>
36 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698