[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:18:40 PST 2018


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

--- Comment #8 from Tim Horton <thorton at apple.com> ---
(In reply to Ryosuke Niwa from comment #7)
> (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.

No, I don't think moving the focus is important.

-- 
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/bf65683d/attachment.html>


More information about the webkit-unassigned mailing list