[Webkit-unassigned] [Bug 256929] New: setSelectionRange will reset the m_latestFocusTrigger variable, causing the subsequently focused element to match the :focus-visible selector

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed May 17 17:07:35 PDT 2023


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

            Bug ID: 256929
           Summary: setSelectionRange will reset the m_latestFocusTrigger
                    variable, causing the subsequently focused element to
                    match the :focus-visible selector
           Product: WebKit
           Version: Safari 16
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: DOM
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: 2471314 at gmail.com

Created attachment 466388

  --> https://bugs.webkit.org/attachment.cgi?id=466388&action=review

test case

element.setSelectionRange() is used to modify the cursor position, if the element.focus() is called again subsequently, the focused element will incorrectly match the :focus-visible selector.

-- 
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/20230518/2ce09764/attachment.htm>


More information about the webkit-unassigned mailing list