Bug 33267

Summary: window.close() doesn't set focus to parent
Product: WebKit Reporter: Tim McConnell <timmc>
Component: WebKit Misc.Assignee: Nobody <webkit-unassigned>
Status: UNCONFIRMED ---    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Windows 7   
Attachments:
Description Flags
The first of two simple HTML files demonstrating the bug.
none
The second HTML file. none

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.