Index: LayoutTests/http/tests/security/contentSecurityPolicy/resources/frame-ancestors-and-x-frame-options.pl |
diff --git a/LayoutTests/http/tests/security/contentSecurityPolicy/resources/frame-ancestors.pl b/LayoutTests/http/tests/security/contentSecurityPolicy/resources/frame-ancestors-and-x-frame-options.pl |
similarity index 73% |
copy from LayoutTests/http/tests/security/contentSecurityPolicy/resources/frame-ancestors.pl |
copy to LayoutTests/http/tests/security/contentSecurityPolicy/resources/frame-ancestors-and-x-frame-options.pl |
index 808008590665e3def4e951833241acfbeab8eeb8..74b317741201efba87dedb8cb0dd5cf8bee80198 100755 |
--- a/LayoutTests/http/tests/security/contentSecurityPolicy/resources/frame-ancestors.pl |
+++ b/LayoutTests/http/tests/security/contentSecurityPolicy/resources/frame-ancestors-and-x-frame-options.pl |
@@ -5,11 +5,12 @@ 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 "Content-Security-Policy: frame-ancestors " . $cgi->param("policy") . "\n"; |
+print "X-Frame-Options: " . $cgi->param("xfo") . "\n\n"; |
estark
2015/09/08 18:15:47
Confusion: when $cgi->param("xfo") is empty, how d
estark
2015/09/08 18:18:20
Oh wait, duh, it will only hit the ASSERT_NOT_REAC
|
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 " <p>This is an IFrame sending a Content Security Policy header containing \"frame-ancestors " . $cgi->param("policy") . "\" and \"X-Frame-Options: " . $cgi->param("xfo") . "\".</p>\n"; |
print "</body>\n"; |
print "</html>\n"; |