Bug 33267 - window.close() doesn't set focus to parent
Summary: window.close() doesn't set focus to parent
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows 7
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-06 12:40 PST by Tim McConnell
Modified: 2010-01-06 12:41 PST (History)
0 users

See Also:


Attachments
The first of two simple HTML files demonstrating the bug. (178 bytes, text/html)
2010-01-06 12:40 PST, Tim McConnell
no flags Details
The second HTML file. (356 bytes, text/html)
2010-01-06 12:41 PST, Tim McConnell
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tim McConnell 2010-01-06 12:40:42 PST
Created attachment 45982 [details]
The first of two simple HTML files demonstrating the bug.

When close a dialog window, e.g. launched from a input field button, the parent page does not receive focus if the dialog calls close() on itself. However, if the dialog calls focus() on the parent and then calls close(), the parent will have proper focus.

This happens regardless of whether the parent had focus before the dialog launched.

See the two attached files.
Comment 1 Tim McConnell 2010-01-06 12:41:19 PST
Created attachment 45983 [details]
The second HTML file.

Adding the companion HTML file.