Layout test fast/innerHTML/innerHTML-iframe.html is flaky on all platforms. See: http://test-results.appspot.com/dashboards/flakiness_dashboard.html#group=%40ToT%20-%20chromium.org&showAllRuns=true&showExpectations=true&tests=fast%2FinnerHTML%2FinnerHTML-iframe.html Seems strange that the onload handler wouldn't be able to reference document.body. Could the new multithreaded parser have something to do with these failures?
Hmm, I thought I fixed the document.body flake in r145857 but it looks like the setTimeout is still racing with onload. The failing diff now is: TypeError: Cannot set property 'innerHTML' of null PASS: body and iframe cleared without crashing. which means the setTimeout() blew away <div id="x"> before the onload fired.
Perhaps the right fix is to set the timeout from inside the onload handler so it always happens after the .innerHTML.
Is the existing pattern in the test supposed to be guaranteed to work though?
No, it's racy.
OK. I'll update the test.
Fixed the test in http://trac.webkit.org/changeset/146126 .