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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/csp.php

Issue 2490943002: Block 'javascript:' navigation in the correct document. (Closed)
Patch Set: feedback Created 4 years, 1 month 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/resources/csp.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/csp.php b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/csp.php
new file mode 100644
index 0000000000000000000000000000000000000000..4568b613775a3434ff8e68db059edda505125c6e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/csp.php
@@ -0,0 +1,4 @@
+<?php
+ header("Content-Security-Policy: ${_GET['csp']}");
+?>
+<!doctype html><title>Header!</title>

Powered by Google App Engine
This is Rietveld 408576698