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

Unified Diff: LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-script-cors-no-xorigin.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-cors-no-xorigin.html
diff --git a/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-script-cors-no-xorigin.html b/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-script-cors-no-xorigin.html
new file mode 100644
index 0000000000000000000000000000000000000000..f965d50f8a7c49175ec4fa16e8a8a04ff594f3df
--- /dev/null
+++ b/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-script-cors-no-xorigin.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<head>
+ <title>SRI on cross origin CORS enabled script, without CORS fetch</title>
+</head>
+<body>
+ <script src="/resources/testharness.js"></script>
+ <script src="/resources/testharnessreport.js"></script>
+ <script>
+ var result = '';
+ var scriptLoaded = function() {
+ assert_equals(result, '', 'Script did not run.');
+ done();
+ };
+ var scriptError = function() {
+ assert_unreached('Script error.');
+ done();
+ };
+ </script>
+ <script integrity="ni:///sha256;mk_DwEwGGoyrh4sgi9t0nYTO1Lrft3w6vzaNuMaZrtQ=" src="http://localhost:8000/security/resources/cors-script.php?value=ran" onload="scriptLoaded();" onerror="scriptError();"></script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698