[Webkit-unassigned] [Bug 140596] New: DOM Level 3: FocusEvent sequence

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jan 18 11:46:02 PST 2015


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

            Bug ID: 140596
           Summary: DOM Level 3: FocusEvent sequence
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Event Handling
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mail at rodneyrehm.de

Created attachment 244864
  --> https://bugs.webkit.org/attachment.cgi?id=244864&action=review
focus-event-sequence.html

# Steps to reproduce the problem:
1. register event listeners for focusout, blur, focusin, focus
2. observe sequence of dispatched events upon shifting focus

Live test-case: http://medialize.github.io/ally.js/tests/browser-bugs/focus-event-order.html


# What is the expected behavior?
The sequence per DOM Level 3 [1] should be: focusout, focusin, blur, focus

[1] https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#events-focusevent-event-order


# What went wrong?
sequence is blur, focusout, focus, focusing


With the currently provided sequence the focusout and focusin events cannot be safely used to alter focus before it was given. The only "benefit" the current implementation brings with focusin over focus is that the former bubbles, the latter does not.

Gecko doesn't support focusin/focusout at all. WebKit suffers the same bug. IE11 dispatches focus events asynchronously thereby accidentally getting the sequence right, IE12 Win10 Tec Preview fixed the ansynchronous-bug and thereby messed up the sequence as well.

Chromium bug for reference: https://code.google.com/p/chromium/issues/detail?id=449857

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150118/07e28ba3/attachment-0002.html>


More information about the webkit-unassigned mailing list