[Webkit-unassigned] [Bug 33512] New: blur event not fired on <input> when programmatically focusing on an <input> within an <iframe> then focusing the window

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jan 11 21:28:57 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=33512

           Summary: blur event not fired on <input> when programmatically
                    focusing on an <input> within an <iframe> then
                    focusing the window
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: dbates at webkit.org
                CC: oliver at apple.com, aroben at apple.com


The blur event is not fired on an <input> within an <iframe> when the input
loses focus by programmatically focusing the window.

In particular, suppose there is an <input> within an <iframe> and perform the
following actions programmatically (in order):

1) Call focus() on <input>.
2) Call focus() on the current window.

Then the following sequence of events are fired, where an event := (event
target element, event type):

(window, blur), (<iframe>, focus), (<input>, focus), (<iframe>, blur), (window,
focus).

Notice, the event (<input>, blur) is missing from this sequence. The expected
result is:

window, blur), (<iframe>, focus), (<input>, focus),  (<input>, blur),
(<iframe>, blur), (window, focus).

By the unfocusing steps listed in section 6.4.2 of the HTML 5 spec.
<http://dev.w3.org/html5/spec/Overview.html#focus-management>, we should fire a
blur event at <input>.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list