Bug 88001 - DRT and WTR don't handle focus switching between multiple windows
Summary: DRT and WTR don't handle focus switching between multiple windows
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 86969
  Show dependency treegraph
 
Reported: 2012-05-31 12:10 PDT by jochen
Modified: 2012-06-03 10:50 PDT (History)
4 users (show)

See Also:


Attachments
regression test (2.42 KB, patch)
2012-05-31 12:11 PDT, jochen
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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