RESOLVED FIXED 67538
Layout Test http/tests/security/xssAuditor/dom-write-innerHTML.html is flaky
https://bugs.webkit.org/show_bug.cgi?id=67538
Summary Layout Test http/tests/security/xssAuditor/dom-write-innerHTML.html is flaky
James Robinson
Reported 2011-09-02 16:32:46 PDT
The following layout test is flaky on all platforms in debug http/tests/security/xssAuditor/dom-write-innerHTML.html Probable cause: I think the setTimeout() is failing the race against the img onerror handler, although I haven't looked too closely. Example failure diff: ALERT: /XSS/
Attachments
Patch (3.78 KB, patch)
2012-02-05 22:09 PST, Adam Barth
no flags
Alexey Proskuryakov
Comment 1 2011-09-02 22:06:12 PDT
This test is pretty old, was it always flaky? Seems unlikely that notifyDone() can trigger a failure alert, could be an actual bug.
Adam Barth
Comment 2 2012-02-05 22:09:53 PST
Kentaro Hara
Comment 3 2012-02-05 22:20:01 PST
Comment on attachment 125571 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=125571&action=review > LayoutTests/http/tests/security/xssAuditor/resources/echo-dom-write-innerHTML.html:9 > -</html> > \ No newline at end of file > +</html> What is the change for?
Adam Barth
Comment 4 2012-02-05 22:21:27 PST
Comment on attachment 125571 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=125571&action=review >> LayoutTests/http/tests/security/xssAuditor/resources/echo-dom-write-innerHTML.html:9 >> +</html> > > What is the change for? vi just adds newlines at the end of the file. It's not needed to fix the bug. I can remove the newline again if you'd prefer.
Kentaro Hara
Comment 5 2012-02-05 22:26:28 PST
Comment on attachment 125571 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=125571&action=review >>> LayoutTests/http/tests/security/xssAuditor/resources/echo-dom-write-innerHTML.html:9 >>> +</html> >> >> What is the change for? > > vi just adds newlines at the end of the file. It's not needed to fix the bug. I can remove the newline again if you'd prefer. Then, maybe we can remove the "\ No newline at end of file" line (because now the comment has no meaning).
Adam Barth
Comment 6 2012-02-05 22:33:57 PST
> Then, maybe we can remove the "\ No newline at end of file" line (because now the comment has no meaning). Oh, that's just added by the diff tool. It's not something that ends up in the repository.
Kentaro Hara
Comment 7 2012-02-05 22:35:25 PST
(In reply to comment #6) > > Then, maybe we can remove the "\ No newline at end of file" line (because now the comment has no meaning). > > Oh, that's just added by the diff tool. It's not something that ends up in the repository. Ah, I got it:-)
WebKit Review Bot
Comment 8 2012-02-06 01:22:44 PST
Comment on attachment 125571 [details] Patch Clearing flags on attachment: 125571 Committed r106785: <http://trac.webkit.org/changeset/106785>
WebKit Review Bot
Comment 9 2012-02-06 01:22:49 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.