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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/javascript-url.pl

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/javascript-url.pl
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/javascript-url.pl b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/javascript-url.pl
deleted file mode 100755
index 0f2964656fde16d34495e053ddcd43eaaac8b057..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/javascript-url.pl
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/usr/bin/perl -wT
-use strict;
-use CGI;
-
-my $cgi = new CGI;
-
-print "Content-Type: text/html; charset=UTF-8\n";
-print "Content-Security-Policy: ".$cgi->param('csp')."\n\n";
-
-my $text = "PASS";
-$text = "FAIL" if $cgi->param('should_run') eq 'no';
-
-print "<!DOCTYPE html>\n";
-print "<html>\n";
-print "<body>\n";
-print "<iframe src=\"javascript:alert('".$text."');\"></iframe>\n";
-print "<object data=\"javascript:alert('".$text."');\"></object>\n";
-print "<embed src=\"javascript:alert('".$text."');\"></embed>\n";
-print "</html>\n";

Powered by Google App Engine
This is Rietveld 408576698