Fix selection hang in Mail
authormegan_gardner@apple.com <megan_gardner@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 Jun 2019 03:06:20 +0000 (03:06 +0000)
committermegan_gardner@apple.com <megan_gardner@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 Jun 2019 03:06:20 +0000 (03:06 +0000)
https://bugs.webkit.org/show_bug.cgi?id=198845
<rdar://problem/51388180>

Reviewed by Tim Horton.

SelectionDidChange requires a selectionWillChange in order to keep things in line.

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

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@246425 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/ChangeLog
Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm

index b1068f7..be102fd 100644 (file)
@@ -1,3 +1,16 @@
+2019-06-13  Megan Gardner  <megan_gardner@apple.com>
+
+        Fix selection hang in Mail
+        https://bugs.webkit.org/show_bug.cgi?id=198845
+        <rdar://problem/51388180>
+
+        Reviewed by Tim Horton.
+
+        SelectionDidChange requires a selectionWillChange in order to keep things in line.
+
+        * UIProcess/ios/WKContentViewInteraction.mm:
+        (-[WKContentView _selectionChanged]):
+
 2019-06-13  Tim Horton  <timothy_horton@apple.com>
 
         No content shows up for WKWebView while locked even with _canShowWhileLocked is YES
index ba5a867..62b3ae1 100644 (file)
@@ -5764,6 +5764,7 @@ static BOOL allPasteboardItemOriginsMatchOrigin(UIPasteboard *pasteboard, const
     }
 #endif
 
+    [self.inputDelegate selectionWillChange:self];
     [self.inputDelegate selectionDidChange:self];
     
     [_webView _didChangeEditorState];