Created attachment 466388 [details] 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.
Created attachment 466389 [details] Like Element::focusForBindings, set the trigger to FocusTrigger::Bindings
<rdar://problem/109803748>
Comment on attachment 466389 [details] Like Element::focusForBindings, set the trigger to FocusTrigger::Bindings Thanks for the patch but this patch lacks appropriate commit message & a test, both of which need to be added in order for this code change to land.
Pull request: https://github.com/WebKit/WebKit/pull/15092
Committed 270043@main (3d85c92f718f): <https://commits.webkit.org/270043@main> Reviewed commits have been landed. Closing PR #15092 and removing active labels.