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

Unified Diff: LayoutTests/http/tests/htmlimports/resources/csp-blocking.cgi

Issue 19940002: [HTML Import] Respect Content Security Policy Model (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix Mac build failure Created 7 years, 5 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/htmlimports/resources/csp-blocking.cgi
diff --git a/LayoutTests/http/tests/htmlimports/resources/csp-blocking.cgi b/LayoutTests/http/tests/htmlimports/resources/csp-blocking.cgi
new file mode 100755
index 0000000000000000000000000000000000000000..f0584e2156d49f23049acf2538fbe17ded279f1d
--- /dev/null
+++ b/LayoutTests/http/tests/htmlimports/resources/csp-blocking.cgi
@@ -0,0 +1,9 @@
+#!/usr/bin/perl -wT
+use strict;
+
+print "Content-Type: text/html\n";
+print "Content-Security-Policy: script-src 'unsafe-inline'\n\n";
+
+print "<html><head>";
+print "<link id=\"shouldBeBlocked\" rel=\"import\" href=\"hello.html\">";
+print "</head></html>\n";

Powered by Google App Engine
This is Rietveld 408576698