Title: [187255] trunk/Source/WebKit2
Revision
187255
Author
[email protected]
Date
2015-07-23 15:00:16 -0700 (Thu, 23 Jul 2015)

Log Message

Adopt the new _previewItemControllerDidCancelPreview delegate method.
https://bugs.webkit.org/show_bug.cgi?id=147238

Don't allow hightlight long press to trigger tap if the link preview is cancelled because
the link is not preview-able.

Patch by Yongjun Zhang <[email protected]> on 2015-07-23
Reviewed by Beth Dakin.

* UIProcess/ios/WKContentViewInteraction.mm:
(-[WKContentView _previewItemControllerDidCancelPreview:]):

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (187254 => 187255)


--- trunk/Source/WebKit2/ChangeLog	2015-07-23 21:26:42 UTC (rev 187254)
+++ trunk/Source/WebKit2/ChangeLog	2015-07-23 22:00:16 UTC (rev 187255)
@@ -1,3 +1,16 @@
+2015-07-23  Yongjun Zhang  <[email protected]>
+
+        Adopt the new _previewItemControllerDidCancelPreview delegate method.
+        https://bugs.webkit.org/show_bug.cgi?id=147238
+
+        Don't allow hightlight long press to trigger tap if the link preview is cancelled because
+        the link is not preview-able.
+
+        Reviewed by Beth Dakin.
+
+        * UIProcess/ios/WKContentViewInteraction.mm:
+        (-[WKContentView _previewItemControllerDidCancelPreview:]): 
+
 2015-07-23  Enrica Casucci  <[email protected]>
 
         iOS build fix after http://trac.webkit.org/changeset/187238.

Modified: trunk/Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm (187254 => 187255)


--- trunk/Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm	2015-07-23 21:26:42 UTC (rev 187254)
+++ trunk/Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm	2015-07-23 22:00:16 UTC (rev 187255)
@@ -3398,6 +3398,11 @@
     return rectArray.autorelease();
 }
 
+- (void)_previewItemControllerDidCancelPreview:(UIPreviewItemController *)controller
+{
+    _highlightLongPressCanClick = NO;
+}
+
 @end
 
 #endif
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to