| 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";
|
|
|