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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/require-sri-for-style-blocked.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-blocked.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/style-blocked.html b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/require-sri-for-style-blocked.html
similarity index 73%
copy from third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/style-blocked.html
copy to third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/require-sri-for-style-blocked.html
index 75e152ce2edc505128f1b89822149923aeadb43b..507bc929ccae1c9bb603864c3615ce5f945f88b2 100644
--- a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/style-blocked.html
+++ b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/require-sri-for-style-blocked.html
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
-<meta http-equiv="Content-Security-Policy" content="style-src 'none'; script-src 'unsafe-inline'">
+<meta http-equiv="Content-Security-Policy" content="require-sri-for style; style-src *;;">
Mike West 2016/06/10 09:25:15 Nit: Extra ';'. Double nit: Please write this as
<link rel="stylesheet" href="resources/blue.css">
<script>
if (window.testRunner)

Powered by Google App Engine
This is Rietveld 408576698