Bug 61227

Summary: [Windows] Window focus event fires twice
Product: WebKit Reporter: Brent Fulgham <bfulgham>
Component: WebKit Misc.Assignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: jeffm, pierbover11
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Windows 7   
Attachments:
Description Flags
Example demonstrating the problem none

Description Brent Fulgham 2011-05-20 17:00:52 PDT
Created attachment 94292 [details]
Example demonstrating the problem

(Reported by Anthony Johnson)
The attached example html demonstrates a bug in the Windows version of WebKit (both the Apple Safari version and the WinCairo port.)  This problem does not exist in the Chromium browser, or the Mac version of Safari.

1. Add an event listener for the window's onfocus event.
2. Click outside of Safari.
3. Click back inside the HTML view of Safari.
4. Observe that two window focus events are fired.
Comment 1 Pier Bover 2017-11-29 08:42:24 PST
This still happens in mobile and desktop, 6 years later.