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

Unified Diff: LayoutTests/http/tests/security/contentSecurityPolicy/resources/frame-ancestors.pl

Issue 91353002: CSP 1.1: Implement the 'frame-ancestors' directive. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 6 years, 11 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: LayoutTests/http/tests/security/contentSecurityPolicy/resources/frame-ancestors.pl
diff --git a/LayoutTests/http/tests/security/contentSecurityPolicy/resources/frame-ancestors.pl b/LayoutTests/http/tests/security/contentSecurityPolicy/resources/frame-ancestors.pl
new file mode 100755
index 0000000000000000000000000000000000000000..808008590665e3def4e951833241acfbeab8eeb8
--- /dev/null
+++ b/LayoutTests/http/tests/security/contentSecurityPolicy/resources/frame-ancestors.pl
@@ -0,0 +1,15 @@
+#!/usr/bin/perl
+use strict;
+use CGI;
+
+my $cgi = new CGI;
+
+print "Content-Type: text/html; charset=UTF-8\n";
+print "Content-Security-Policy: frame-ancestors " . $cgi->param("policy") . "\n\n";
+
+print "<!DOCTYPE html>\n";
+print "<html>\n";
+print "<body>\n";
+print " <p>This is an IFrame sending a Content Security Policy header containing \"frame-ancestors " . $cgi->param("policy") . "\".</p>\n";
+print "</body>\n";
+print "</html>\n";

Powered by Google App Engine
This is Rietveld 408576698