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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/security/xssAuditor/resources/echo-object-src.pl
diff --git a/LayoutTests/http/tests/security/xssAuditor/resources/echo-object-src.pl b/LayoutTests/http/tests/security/xssAuditor/resources/echo-object-src.pl
index 23900f31093e98395595a77c693d75a675ddce5b..aeb6577eec52a2c429efc929e85d2e21c685acdb 100755
--- a/LayoutTests/http/tests/security/xssAuditor/resources/echo-object-src.pl
+++ b/LayoutTests/http/tests/security/xssAuditor/resources/echo-object-src.pl
@@ -8,13 +8,11 @@ print "Content-Type: text/html; charset=UTF-8\n\n";
print "<!DOCTYPE html>\n";
print "<html>\n";
-if ($cgi->param('relay-target-ids-for-event')) {
- print "<script>\n";
- print "document.addEventListener('" . $cgi->param('relay-target-ids-for-event') . "', function(event) {\n";
- print " window.parent.postMessage(event.target.id, '*');\n";
- print "}, true);\n";
- print "</script>\n";
-}
+print "<script>\n";
+print "onload = function() {\n";
+print " window.parent.postMessage('loaded', '*');\n";
+print "}\n";
+print "</script>\n";
print "<body>\n";
print "<object id=\"object\" name=\"plugin\" type=\"application/x-webkit-test-netscape\">\n";
print "<param name=\"movie\" value=\"".$cgi->param('q')."\" />\n";

Powered by Google App Engine
This is Rietveld 408576698