Bug 138334

Summary: fast/dom/remove-body-during-body-replacement2.html fails on WK2
Product: WebKit Reporter: Alexey Proskuryakov <ap>
Component: Tools / TestsAssignee: Alexey Proskuryakov <ap>
Status: RESOLVED FIXED    
Severity: Normal CC: andersca, rniwa
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
test
none
proposed fix andersca: review+

Description Alexey Proskuryakov 2014-11-03 16:29:41 PST
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
Comment 1 Alexey Proskuryakov 2014-11-03 16:29:58 PST
When the test fails, we don't get a DOMFocusOut event.
Comment 2 Ryosuke Niwa 2014-11-04 17:22:56 PST
Created attachment 240987 [details]
test

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.
Comment 3 Alexey Proskuryakov 2014-11-05 11:03:56 PST
Created attachment 241042 [details]
proposed fix
Comment 4 Alexey Proskuryakov 2014-11-05 13:21:51 PST
Committed <http://trac.webkit.org/r175638>.