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

Side by Side Diff: LayoutTests/http/tests/security/contentSecurityPolicy/resources/frame-in-frame.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 #!/usr/bin/perl
2 use strict;
3 use CGI;
4
5 my $cgi = new CGI;
6
7 print "Content-Type: text/html; charset=UTF-8\n\n";
8
9 print "<!DOCTYPE html>\n";
10 print "<html>\n";
11 print "<body>\n";
12 print " <script src='/js-test-resources/js-test.js'></script>\n";
13 print " <script src='/security/contentSecurityPolicy/resources/frame-ancestor s-test.js'></script>\n";
14 print " <script>\n";
15 print " description(\"Testing a " . $cgi->param("child") . "-origin child with a policy of \\\"" . $cgi->param("policy") . "\\\" nested in a " . $cgi->pa ram("parent") . "-origin parent.\");\n";
16 print " " . $cgi->param("child") . "OriginFrameShouldBe" . $cgi->param("e xpectation") . "(\"" . $cgi->param("policy") . "\");\n";
17 print " </script>\n";
18 print "</body>\n";
19 print "</html>\n";
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698