Try to make some xssAuditor tests less flakey.
authorAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Wed, 11 May 2011 19:45:53 +0000 (16:45 -0300)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Wed, 11 May 2011 19:45:53 +0000 (16:45 -0300)
commit9d6baba2bd9f698a0b412b414320478f9a944ca2
treeb817b0c088da1b729c4c3da5cd9a9b6d7796b8f5
parent0e0dbbc37bd2c3304624a0c3274d647e5f49512e
Try to make some xssAuditor tests less flakey.
https://bugs.webkit.org/show_bug.cgi?id=44749

Reviewed by Simon Fraser.

Use postMessage() to communicate to the top window each time a
beforeload event fires in the iframe. When the top window has seen a
beforeload event from each widget in the iframe, it calls notifyDone().
This prevents the test from exiting before all the widgets have had a
chance to load, therefore ensuring that all relevant XSS Auditor
messages have been emitted.

* http/tests/security/xssAuditor/object-embed-tag-control-char-expected.txt:
* http/tests/security/xssAuditor/object-embed-tag-control-char.html:
* http/tests/security/xssAuditor/object-embed-tag-expected.txt:
* http/tests/security/xssAuditor/object-embed-tag-null-char-expected.txt:
* http/tests/security/xssAuditor/object-embed-tag-null-char.html:
* http/tests/security/xssAuditor/object-embed-tag.html:
* http/tests/security/xssAuditor/object-src-inject.html:
* http/tests/security/xssAuditor/object-tag-javascript-url.html:
* http/tests/security/xssAuditor/object-tag.html:
* http/tests/security/xssAuditor/resources/echo-intertag.pl:
* http/tests/security/xssAuditor/resources/echo-object-src.pl:
* http/tests/security/xssAuditor/resources/utilities.js:
(notifyDoneAfterReceivingBeforeloadFromIds):
* platform/mac/Skipped:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@66254 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Conflicts:

LayoutTests/platform/mac/Skipped
13 files changed:
LayoutTests/ChangeLog
LayoutTests/http/tests/security/xssAuditor/object-embed-tag-control-char-expected.txt
LayoutTests/http/tests/security/xssAuditor/object-embed-tag-control-char.html
LayoutTests/http/tests/security/xssAuditor/object-embed-tag-expected.txt
LayoutTests/http/tests/security/xssAuditor/object-embed-tag-null-char-expected.txt
LayoutTests/http/tests/security/xssAuditor/object-embed-tag-null-char.html
LayoutTests/http/tests/security/xssAuditor/object-embed-tag.html
LayoutTests/http/tests/security/xssAuditor/object-src-inject.html
LayoutTests/http/tests/security/xssAuditor/object-tag-javascript-url.html
LayoutTests/http/tests/security/xssAuditor/object-tag.html
LayoutTests/http/tests/security/xssAuditor/resources/echo-intertag.pl
LayoutTests/http/tests/security/xssAuditor/resources/echo-object-src.pl
LayoutTests/http/tests/security/xssAuditor/resources/utilities.js