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

Side by Side Diff: LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-script-no-cors-bad-integrity.html

Issue 954233003: Enable SRI only for same origin and CORS content. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed test failures Created 5 years, 9 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>
2 <head>
3 <title>SRI on cross origin CORS disabled script, with bad integrity</title>
4 </head>
5 <body>
6 <script src="/resources/testharness.js"></script>
7 <script src="/resources/testharnessreport.js"></script>
8 <script>
9 var result = '';
10 var scriptLoaded = function() {
11 assert_unreached('Script loaded.');
12 done();
13 };
14 var scriptError = function() {
15 done();
16 };
17 </script>
18 <script crossorigin integrity="ni:///sha256;deadbeef" src="http://localhost: 8000/security/resources/cors-script.php?cors=false&value=ran2" onload="scriptLoa ded();" onerror="scriptError();"></script>
19 </body>
20 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698