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

Side by Side Diff: LayoutTests/http/tests/security/cross-origin-css.html

Issue 47923008: Block execution of failed 'crossorigin' <script>s. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 7 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 | LayoutTests/http/tests/security/cross-origin-css-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
1 <html> 1 <html>
2 <head> 2 <head>
3 <link rel="stylesheet" 3 <link rel="stylesheet"
4 href="resources/redir.php?url=http://localhost:8000/security/resources/xor igincss1.html"></link> 4 href="resources/redir.php?url=http://localhost:8000/security/resources/xor igincss1.html"></link>
5 <link rel="stylesheet" 5 <link rel="stylesheet"
6 type="text/css" 6 type="text/css"
7 href="resources/redir.php?url=http://localhost:8000/security/resources/xor igincss2.html"></link> 7 href="resources/redir.php?url=http://localhost:8000/security/resources/xor igincss2.html"></link>
8 <link rel="stylesheet" 8 <link rel="stylesheet"
9 href="resources/redir.php?url=http://localhost:8000/security/resources/xor igincss1.css"></link> 9 href="resources/redir.php?url=http://localhost:8000/security/resources/xor igincss1.css"></link>
10 <link rel="stylesheet" 10 <link rel="stylesheet"
(...skipping 23 matching lines...) Expand all
34 if (window.testRunner) 34 if (window.testRunner)
35 testRunner.notifyDone(); 35 testRunner.notifyDone();
36 } 36 }
37 </script> 37 </script>
38 <style> 38 <style>
39 /* Deliberately reuse the same file / class / id on this first one */ 39 /* Deliberately reuse the same file / class / id on this first one */
40 @import "resources/redir.php?url=http://localhost:8000/security/resources/xorigi ncss2.html"; 40 @import "resources/redir.php?url=http://localhost:8000/security/resources/xorigi ncss2.html";
41 @import "resources/redir.php?url=http://localhost:8000/security/resources/xorigi ncss4.html"; 41 @import "resources/redir.php?url=http://localhost:8000/security/resources/xorigi ncss4.html";
42 @import "resources/redir.php?url=http://localhost:8000/security/resources/xorigi ncss2.css"; 42 @import "resources/redir.php?url=http://localhost:8000/security/resources/xorigi ncss2.css";
43 @import "resources/xorigincss5.html"; 43 @import "resources/xorigincss5.html";
44
45 /* Check that data: is still allowed for non-CORS cross-origin image fetches. */
46 #data-background-url {
47 content: "PASS (image loaded)";
48 background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/ svg' width='0px' height='0px'></svg>");
49 }
44 </style> 50 </style>
45 </head> 51 </head>
46 <body><div id="id1" class="id1"></div><div id="id2" class="id2"></div><div id="i d3" class="id3"></div><div id="id4" class="id4"></div><div id="id5" class="id5"> </div><div id="id6" class="id6"></div><div id="id7" class="id7"></div></body> 52 <body><div id="id1" class="id1"></div><div id="id2" class="id2"></div><div id="i d3" class="id3"></div><div id="id4" class="id4"></div><div id="id5" class="id5"> </div><div id="id6" class="id6"></div><div id="id7" class="id7"></div><div id="d ata-background-url">PASS background image loaded</div></body>
47 </html> 53 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/cross-origin-css-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698