Title: [218727] trunk/Source/WebKit2
Revision
218727
Author
[email protected]
Date
2017-06-22 16:32:29 -0700 (Thu, 22 Jun 2017)

Log Message

[iOS DnD] [WK2] Enable in-app dragging from WKWebView on the phone
https://bugs.webkit.org/show_bug.cgi?id=173736
<rdar://problem/32873545>

Reviewed by Tim Horton.

Flip the drag interaction enabled switch on when initializing WKContentView's UIDragInteraction.

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

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (218726 => 218727)


--- trunk/Source/WebKit2/ChangeLog	2017-06-22 22:49:41 UTC (rev 218726)
+++ trunk/Source/WebKit2/ChangeLog	2017-06-22 23:32:29 UTC (rev 218727)
@@ -1,3 +1,16 @@
+2017-06-22  Wenson Hsieh  <[email protected]>
+
+        [iOS DnD] [WK2] Enable in-app dragging from WKWebView on the phone
+        https://bugs.webkit.org/show_bug.cgi?id=173736
+        <rdar://problem/32873545>
+
+        Reviewed by Tim Horton.
+
+        Flip the drag interaction enabled switch on when initializing WKContentView's UIDragInteraction.
+
+        * UIProcess/ios/WKContentViewInteraction.mm:
+        (-[WKContentView setupDataInteractionDelegates]):
+
 2017-06-22  Chris Dumez  <[email protected]>
 
         isMainThread() assertions in CallbackMap are incorrectly failing on some iOS apps

Modified: trunk/Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm (218726 => 218727)


--- trunk/Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm	2017-06-22 22:49:41 UTC (rev 218726)
+++ trunk/Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm	2017-06-22 23:32:29 UTC (rev 218727)
@@ -4200,6 +4200,8 @@
     _dataInteraction = adoptNS([[UIDragInteraction alloc] initWithDelegate:self]);
     _dataOperation = adoptNS([[UIDropInteraction alloc] initWithDelegate:self]);
     [_dataInteraction _setLiftDelay:self.dragLiftDelay];
+    [_dataInteraction setEnabled:YES];
+
     [self addInteraction:_dataInteraction.get()];
     [self addInteraction:_dataOperation.get()];
 }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to