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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/require-sri-for-style-allowed.html

Issue 2056183002: Implement the `require-sri-for` CSP directive (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/require-sri-for-style-allowed.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/require-sri-for-style-allowed.html b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/require-sri-for-style-allowed.html
new file mode 100644
index 0000000000000000000000000000000000000000..16587f3e3ab16dfbc388159ce079802d9562155d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/require-sri-for-style-allowed.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta http-equiv="Content-Security-Policy" content="require-sri-for style; style-src *;">
+<link rel="stylesheet" integrity="sha384-ShcCjjHALnNbqS5eV7QCI3bD7MRh4q9TUlMpTjtDKqfMqSa3V9NRmOxE8GVVXXHj" crossorigin="anonymous" href="resources/blue.css">
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+</script>
+</head>
+<body>
+<script>
+document.write(document.styleSheets.length > 0 ? 'FAIL' : 'PASS');
Mike West 2016/06/10 09:25:15 Please write this as a `testharness.js` test. See
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698