fast/dom/remove-body-during-body-replacement2.html fails when run as part of regression tests. We usually don;t notice, because it passes on retry. Looks like there is some dependency on earlier tests:
run-webkit-tests -2 --no-retry --child-processes=1 fast/dom/html-link-element-activation-behavior-on-mouse-click.html fast/dom/remove-body-during-body-replacement2.html
When the test fails, we don't get a DOMFocusOut event.
Created attachment 240987 [details]
Interestingly, Firefox doesn't restore the focus back to the main frame either upon reloading the same test page I created.
On Firefox, after focusing the frame, the frame gets removed by the script on 3s timer, and then the page navigates to webkit.org, the keydown doesn't scroll the page until I manually click the main document.
Created attachment 241042 [details]