Changeset 246253 in webkit
- Timestamp:
- Jun 9, 2019, 11:25:39 PM (7 years ago)
- Location:
- branches/safari-608.1.27-branch/Source/WebKit
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
UIProcess/ios/WKContentViewInteraction.mm (modified) (3 diffs)
-
WebProcess/WebPage/WebPage.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-608.1.27-branch/Source/WebKit/ChangeLog
r246252 r246253 1 2019-06-09 Babak Shafiei <bshafiei@apple.com> 2 3 Cherry-pick r246239. rdar://problem/51462498 4 5 Drag starting state can get stuck even though the drag has ended 6 https://bugs.webkit.org/show_bug.cgi?id=198696 7 <rdar://problem/51556045> 8 9 Reviewed by Wenson Hsieh. 10 11 In iOS 13, we're seeing cases of the DragSession not 12 correctly ending, and thus leaving m_isStartingDrag in 13 an incorrect state. Temporarily force this to be reset 14 in ::dragEnded while investigating 15 16 * UIProcess/ios/WKContentViewInteraction.mm: Add some more release logging 17 while here. 18 (-[WKContentView dragInteraction:willAnimateLiftWithAnimator:session:]): 19 (-[WKContentView dragInteraction:item:willAnimateCancelWithAnimator:]): 20 * WebProcess/WebPage/WebPage.cpp: 21 (WebKit::WebPage::dragEnded): 22 23 git-svn-id: https://svn.webkit.org/repository/webkit/trunk@246239 268f45cc-cd09-0410-ab3c-d52691b4dbfc 24 25 2019-06-08 Dean Jackson <dino@apple.com> 26 27 Drag starting state can get stuck even though the drag has ended 28 https://bugs.webkit.org/show_bug.cgi?id=198696 29 <rdar://problem/51556045> 30 31 Reviewed by Wenson Hsieh. 32 33 In iOS 13, we're seeing cases of the DragSession not 34 correctly ending, and thus leaving m_isStartingDrag in 35 an incorrect state. Temporarily force this to be reset 36 in ::dragEnded while investigating 37 38 * UIProcess/ios/WKContentViewInteraction.mm: Add some more release logging 39 while here. 40 (-[WKContentView dragInteraction:willAnimateLiftWithAnimator:session:]): 41 (-[WKContentView dragInteraction:item:willAnimateCancelWithAnimator:]): 42 * WebProcess/WebPage/WebPage.cpp: 43 (WebKit::WebPage::dragEnded): 44 1 45 2019-06-09 Babak Shafiei <bshafiei@apple.com> 2 46 -
branches/safari-608.1.27-branch/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm
r246252 r246253 6706 6706 - (void)dragInteraction:(UIDragInteraction *)interaction willAnimateLiftWithAnimator:(id <UIDragAnimating>)animator session:(id <UIDragSession>)session 6707 6707 { 6708 RELEASE_LOG(DragAndDrop, "Drag session willAnimateLiftWithAnimator: %p", session); 6708 6709 if (!_shouldRestoreCalloutBarAfterDrop && _dragDropInteractionState.anyActiveDragSourceIs(WebCore::DragSourceActionSelection)) { 6709 6710 // FIXME: This SPI should be renamed in UIKit to reflect a more general purpose of hiding interaction assistant controls. … … 6724 6725 page->dragEnded(positionForDragEnd, positionForDragEnd, WebCore::DragOperationNone); 6725 6726 } 6727 #if !RELEASE_LOG_DISABLED 6728 else 6729 RELEASE_LOG(DragAndDrop, "Drag session did not end at start: %p", session); 6730 #endif 6726 6731 }]; 6727 6732 } … … 6775 6780 - (void)dragInteraction:(UIDragInteraction *)interaction item:(UIDragItem *)item willAnimateCancelWithAnimator:(id <UIDragAnimating>)animator 6776 6781 { 6782 RELEASE_LOG(DragAndDrop, "Drag interaction willAnimateCancelWithAnimator"); 6777 6783 [animator addCompletion:[protectedSelf = retainPtr(self), page = _page] (UIViewAnimatingPosition finalPosition) { 6784 RELEASE_LOG(DragAndDrop, "Drag interaction willAnimateCancelWithAnimator (animation completion block fired)"); 6778 6785 page->dragCancelled(); 6779 6786 if (auto completion = protectedSelf->_dragDropInteractionState.takeDragCancelSetDownBlock()) { -
branches/safari-608.1.27-branch/Source/WebKit/WebProcess/WebPage/WebPage.cpp
r245902 r246253 3910 3910 3911 3911 send(Messages::WebPageProxy::DidEndDragging()); 3912 3913 m_isStartingDrag = false; 3912 3914 } 3913 3915
Note:
See TracChangeset
for help on using the changeset viewer.