[Webkit-unassigned] [Bug 179990] Phantom focus/blur events fire on clicking between text input fields when listening with addEventListener

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 20 23:12:22 PST 2018


--- Comment #7 from Ryosuke Niwa <rniwa at webkit.org> ---
(In reply to Tim Horton from comment #6)
> (In reply to Ryosuke Niwa from comment #5)
> > The issue here is that TemporarySelectionChange which is created by
> > TextIndicator::createWithRange is setting & restoring the selection, which
> > also sets & restores the focus. I'd have to talk with Beth / Tim to figure
> > out what we ought to do instead.
> To get rid of that selection change, we'd need all of the
> paint-selection-only painting code to take an arbitrary range instead of
> always looking at the selection. I think that would be pretty nontrivial.
> Instead ideally we'd just stop the events from propagating, I think?

We can just avoid firing of selection related events & avoid changing that focus. Would moving the focus important here? If not, FrameSelection::setSelection takes an option to not set focus.

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/20181121/557ca971/attachment-0001.html>

More information about the webkit-unassigned mailing list