Bug 187004 - Tap highlight displayed when tapping a field that is already focussed
Summary: Tap highlight displayed when tapping a field that is already focussed
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: WebKit Nightly Build
Hardware: iPhone / iPad Other
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-06-25 10:04 PDT by Aditya Keerthi
Modified: 2018-07-27 13:51 PDT (History)
6 users (show)

See Also:


Attachments
Patch (2.00 KB, patch)
2018-06-25 10:17 PDT, Aditya Keerthi
thorton: review+
Details | Formatted Diff | Diff
Patch (2.09 KB, patch)
2018-06-26 14:29 PDT, Aditya Keerthi
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Aditya Keerthi 2018-06-25 10:04:13 PDT
The tap highlight is displayed when tapping a field that is already focussed. This bug is present on ToT.

Reproduction steps
1. Navigate to https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea
2. Tap on the search field to begin an input session - this correctly displays the tap highlight
3. Tap on the field again - the tap highlight is incorrectly shown
Comment 1 Aditya Keerthi 2018-06-25 10:17:11 PDT
Created attachment 343509 [details]
Patch
Comment 2 Radar WebKit Bug Importer 2018-06-25 10:19:08 PDT
<rdar://problem/41428008>
Comment 3 Tim Horton 2018-06-26 11:23:58 PDT
Comment on attachment 343509 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=343509&action=review

> Source/WebKit/ChangeLog:5
> +

No Radar?

> Source/WebKit/ChangeLog:9
> +        _singleTapCommited: could be invoked before the tap highlight request, causing
> +        _potentialTapInProgress to be set to NO. This results in the early return for

Really? I thought these things were all strictly ordered.
Comment 4 Aditya Keerthi 2018-06-26 14:29:57 PDT
Created attachment 343641 [details]
Patch
Comment 5 Aditya Keerthi 2018-06-26 14:31:53 PDT
Added radar to the ChangeLog and explained the cause of the different ordering.
Comment 6 WebKit Commit Bot 2018-06-26 15:21:06 PDT
Comment on attachment 343641 [details]
Patch

Clearing flags on attachment: 343641

Committed r233225: <https://trac.webkit.org/changeset/233225>