[Webkit-unassigned] [Bug 139945] New: Mouse/Touch Events Can Focus Parent Element

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Dec 25 09:34:11 PST 2014


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

            Bug ID: 139945
           Summary: Mouse/Touch Events Can Focus Parent Element
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: Unspecified
                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 243744
  --> https://bugs.webkit.org/attachment.cgi?id=243744&action=review
reduced test case

reduced test case: http://medialize.github.io/ally.js/tests/browser-bugs/webkit-pointer-focus-parent.html

Clicking on an <a> element nested in a <div tabindex="-1"> will cause the <div> to receive focus. If anything should receive focus, it should be the <a> element. This behavior can be observed for mousedown and touchstart.

A way to circumvent this behavior is upon mousedown removing all parental tabindex attributes, so once the mousedown handler finished the only naturally focusable element remaining is the element actually clicked upon. On mouseup the tabindex attributes must be restored. The same applies to touchstart and touchend/touchcancel.

-- 
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/20141225/0c4c98c4/attachment-0002.html>


More information about the webkit-unassigned mailing list