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

Side by Side Diff: LayoutTests/http/tests/security/script-crossorigin-loads-cross-origin-preload.html

Issue 104943004: Have preloader handle crossorigin resources better. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Initialize m_allowCredentials in the constructor Created 7 years 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 | LayoutTests/http/tests/security/script-crossorigin-loads-cross-origin-preload-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 <body>
4 <p>Test that a script element with a crossorigin attribute (pre)loads a cross-or igin script correctly.</p>
5 <pre></pre>
6 <script>
7 var result = "FAIL";
8 </script>
9 <!-- This script should preload using CORS. -->
10 <script crossorigin src="http://localhost:8000/security/resources/cors-script.ph p?cors=true&value=PASS"></script>
11 <script>
12 if (window.testRunner) {
13 testRunner.dumpAsText();
14 testRunner.waitUntilDone();
15 }
16
17 function loaded() {
18 document.querySelector("pre").innerHTML = result;
19 if (window.testRunner)
20 testRunner.notifyDone();
21 }
22 window.onload = loaded;
23 </script>
24 </body>
25 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/script-crossorigin-loads-cross-origin-preload-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698