Chromium Code Reviews

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri.php

Issue 1835463002: Stop supporting invalid CSP directives in meta tags (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove service worker extendable event test Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri.html b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri.php
similarity index 59%
rename from third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri.html
rename to third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri.php
index ad4c5556124a7ac6097036b51e0c416f9ba5adf4..9d58e435fb687e9efdde115c9c72f932ccb5df40 100644
--- a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri.html
+++ b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri.php
@@ -1,5 +1,7 @@
+<?php
+header("Content-Security-Policy: script-src 'self'; report-uri resources/save-report.php?test=report-uri.php");
+?>
<script src="resources/report-test.js"></script>
-<meta http-equiv="Content-Security-Policy" content="script-src 'self'; report-uri resources/save-report.php?test=report-uri.html">
<script>
// This script block will trigger a violation report.
alert('FAIL');

Powered by Google App Engine