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

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

Issue 1413563005: Reset CORS status upon re-initiating fetch of a stylesheet. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/security/link-crossorigin-stylesheet-reinserted-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <script src="/js-test-resources/js-test.js"></script>
5 <script>
6 description("Test that re-inserting a CORS-loading stylesheet is correctly handl ed.")
7
8 function onLoad(event) {
9 testFailed("non-CORS stylesheet loaded(no assert)");
10 finishJSTest();
11 }
12 function onError(event) {
13 testPassed("non-CORS stylesheet loaded with error(no assert)");
14 finishJSTest();
15 }
16 </script>
17 <script src="resources/link-crossorigin-common.js"></script>
18 </head>
19 <body>
20 <div id="div1"></div>
21 <div id="div2"></div>
22 <link id="link1" crossorigin="use-credentials" rel="stylesheet" href="http://127 .0.0.1:8080/resources/slow-script.pl?delay=100" onload="onLoad(event)" onerror=" onError(event)">
23 <script>
24 function runTest()
25 {
26 div1.appendChild(link1);
Mike West 2015/10/21 14:14:04 Nit: Can you actually grab the element before appe
sof 2015/10/21 15:17:34 Can do that, no prizes for brevity in tests; done.
27 div2.appendChild(link1);
28 }
29 window.onload = runTest;
30 </script>
31 </body>
32 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/security/link-crossorigin-stylesheet-reinserted-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698