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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/report-only-in-meta.html

Issue 1860193002: Stop supporting CSP-Report-Only in meta elements (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix weird indentation Created 4 years, 8 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/report-only-in-meta.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/reportonly-in-meta-ignored.html b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/report-only-in-meta.html
similarity index 60%
copy from third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/reportonly-in-meta-ignored.html
copy to third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/report-only-in-meta.html
index 427c462dd58c39355e6efb2a5a8f5450fb844a34..71f43a4cac2848e3b1dacb940ffb2a9eca1df06f 100644
--- a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/reportonly-in-meta-ignored.html
+++ b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/report-only-in-meta.html
@@ -1,13 +1,12 @@
<!DOCTYPE html>
<html>
<head>
- <meta http-equiv="Content-Security-Policy-Report-Only" content="this-should-be-ignored">
<script>
if (window.testRunner)
testRunner.dumpAsText();
</script>
+ <meta http-equiv="Content-Security-Policy-Report-Only" content="sandbox allow-scripts; frame-ancestors 'none'; report-uri http://foo.test">
</head>
<body>
- <p>This tests that report-only Content Security Policy headers are ignored if contained in meta elements.</p>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698