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

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

Issue 997153003: Recommit Enable SRI only for same origin and CORS content (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-script-no-cors.html
diff --git a/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-script-no-cors.html b/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-script-no-cors.html
new file mode 100644
index 0000000000000000000000000000000000000000..c2c65bdd044f3f75a52b3e3f7f2b827772363ef2
--- /dev/null
+++ b/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-script-no-cors.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<head>
+ <title>SRI on cross origin CORS disabled script</title>
+</head>
+<body>
+ <script src="/resources/testharness.js"></script>
+ <script src="/resources/testharnessreport.js"></script>
+ <script>
+ var result = '';
+ var scriptLoaded = function() {
+ assert_unreached('Script ran.');
+ done();
+ };
+ var scriptError = function() {
+ done();
+ };
+ </script>
+ <script crossorigin integrity="ni:///sha256;mk_DwEwGGoyrh4sgi9t0nYTO1Lrft3w6vzaNuMaZrtQ=" src="http://localhost:8000/security/resources/cors-script.php?cors=false&value=ran" onload="scriptLoaded();" onerror="scriptError();"></script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698