Bug 88001

Summary: DRT and WTR don't handle focus switching between multiple windows
Product: WebKit Reporter: jochen
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ap, darin, jberlin, thorton
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 86969    
Attachments:
Description Flags
regression test none

Description jochen 2012-05-31 12:10:28 PDT
See attached test case - both windows have the focus. If you run the test in a browser (disable popup blocking for it to work), only one window will have the focus.

Note that the chromium DRT sets the focus to the new window only.
Comment 1 jochen 2012-05-31 12:11:38 PDT
Created attachment 145129 [details]
regression test
Comment 2 jochen 2012-05-31 12:14:26 PDT
Darin, according to SVN the focus handling code on mac was originally contributed by you. I admit that I lack the insight into mac's DRT implementation to explain what is happening here. Could you shed some light on this or add somebody who might?

thanks
Comment 3 jochen 2012-05-31 13:41:37 PDT
adding tim, as this is related to bug 87884
Comment 4 jochen 2012-06-03 10:50:35 PDT
note that the -expected.txt shows the incorrect result which is currently produced by drt