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

Unified Diff: LayoutTests/http/tests/security/xssAuditor/resources/echo-intertag.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-intertag.pl
diff --git a/LayoutTests/http/tests/security/xssAuditor/resources/echo-intertag.pl b/LayoutTests/http/tests/security/xssAuditor/resources/echo-intertag.pl
index 8e3a5f01792953111e95fa98bd85ad5d178cd20e..2112922f69f68800edd3a39d13d60a0a0305d7ac 100755
--- a/LayoutTests/http/tests/security/xssAuditor/resources/echo-intertag.pl
+++ b/LayoutTests/http/tests/security/xssAuditor/resources/echo-intertag.pl
@@ -77,11 +77,11 @@ print "\n\n";
print "<!DOCTYPE html>\n";
print "<html>\n";
-if ($cgi->param('relay-target-ids-for-event')) {
+if ($cgi->param('wait-for-load')) {
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 "onload = function() {\n";
+ print " window.parent.postMessage('loaded', '*');\n";
+ print "}";
print "</script>\n";
}
if ($cgi->param('inHead')) {

Powered by Google App Engine
This is Rietveld 408576698