Bug 133526 - REGRESSION (iOS WebKit2): Selection rect disappears on touch up on google result
Summary: REGRESSION (iOS WebKit2): Selection rect disappears on touch up on google result
Status: CLOSED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: iPhone / iPad Unspecified
: P2 Normal
Assignee: Enrica Casucci
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2014-06-04 14:40 PDT by Enrica Casucci
Modified: 2014-06-04 15:45 PDT (History)
0 users

See Also:


Attachments
Patch (1.56 KB, patch)
2014-06-04 14:53 PDT, Enrica Casucci
benjamin: review+
benjamin: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Enrica Casucci 2014-06-04 14:40:57 PDT
Tap and hold on an address after searching for a place in google.
Lifting the finger makes the  selection disappear.

<rdar://problem/16863448>
Comment 1 Enrica Casucci 2014-06-04 14:53:37 PDT
Created attachment 232503 [details]
Patch
Comment 2 Benjamin Poulain 2014-06-04 15:33:16 PDT
Comment on attachment 232503 [details]
Patch

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

> Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm:755
> +- (void)cancelHighlight
> +{
> +    [_highlightLongPressGestureRecognizer cancel];
> +}

You can just expose _cancelLongPressGestureRecognizer. Or if you really need a separate call, use [self _cancelLongPressGestureRecognizer].
Comment 3 Enrica Casucci 2014-06-04 15:40:28 PDT
(In reply to comment #2)
> (From update of attachment 232503 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=232503&action=review
> 
> > Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm:755
> > +- (void)cancelHighlight
> > +{
> > +    [_highlightLongPressGestureRecognizer cancel];
> > +}
> 
> You can just expose _cancelLongPressGestureRecognizer. Or if you really need a separate call, use [self _cancelLongPressGestureRecognizer].

I did not see that. I'll use that one directly. No need for this patch then. Thanks!