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

Side by Side Diff: LayoutTests/http/tests/security/xssAuditor/resources/echo-object-src.pl

Issue 205523003: Remove beforeload events. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove more tests Created 6 years, 9 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
1 #!/usr/bin/perl -wT 1 #!/usr/bin/perl -wT
2 use strict; 2 use strict;
3 use CGI; 3 use CGI;
4 4
5 my $cgi = new CGI; 5 my $cgi = new CGI;
6 6
7 print "Content-Type: text/html; charset=UTF-8\n\n"; 7 print "Content-Type: text/html; charset=UTF-8\n\n";
8 8
9 print "<!DOCTYPE html>\n"; 9 print "<!DOCTYPE html>\n";
10 print "<html>\n"; 10 print "<html>\n";
11 if ($cgi->param('relay-target-ids-for-event')) { 11 print "<script>\n";
12 print "<script>\n"; 12 print "onload = function() {\n";
13 print "document.addEventListener('" . $cgi->param('relay-target-ids-for-even t') . "', function(event) {\n"; 13 print " window.parent.postMessage('loaded', '*');\n";
14 print " window.parent.postMessage(event.target.id, '*');\n"; 14 print "}\n";
15 print "}, true);\n"; 15 print "</script>\n";
16 print "</script>\n";
17 }
18 print "<body>\n"; 16 print "<body>\n";
19 print "<object id=\"object\" name=\"plugin\" type=\"application/x-webkit-test-ne tscape\">\n"; 17 print "<object id=\"object\" name=\"plugin\" type=\"application/x-webkit-test-ne tscape\">\n";
20 print "<param name=\"movie\" value=\"".$cgi->param('q')."\" />\n"; 18 print "<param name=\"movie\" value=\"".$cgi->param('q')."\" />\n";
21 print "</object>\n"; 19 print "</object>\n";
22 print "</body>\n"; 20 print "</body>\n";
23 print "</html>\n"; 21 print "</html>\n";
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698