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

Side by Side Diff: LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-script-no-cors.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: Rebase on ToT 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 </head>
4 <body>
5 <script src="/js-test-resources/js-test.js"></script>
6 <script>
7 var result = false;
8 var scriptLoaded = function() {
9 if (result)
10 testFailed('Script ran.');
11 else
12 testPassed('Script did not run.');
13 finishJSTest();
14 };
15
16 window.jsTestIsAsync = true;
17 description("The test passes if the script fails to run and there is als o a console error saying that the specified integrity attribute cannot be enforc ed because the resource is not CORS enabled.");
18 </script>
19 <script integrity="ni:///sha256;deadbeef" src="http://localhost:8000/securit y/resources/cors-script.php?credentials=true&cors=false&value=true" onload="scri ptLoaded();"></script>
Mike West 2015/03/06 03:17:09 You're conflating a few things here: 1. You've d
jww 2015/03/06 08:24:21 Yup, I added a bunch of tests. This is probably as
20 </body>
21 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698