Changeset 249226 in webkit
- Timestamp:
- Aug 28, 2019, 5:01:03 PM (7 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
TestWebKitAPI/ios/DragAndDropSimulatorIOS.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r249224 r249226 1 2019-08-28 Wenson Hsieh <wenson_hsieh@apple.com> 2 3 WKAttachmentTests.DropFolderAsAttachmentAndMoveByDragging fails in some iOS simulator configurations 4 https://bugs.webkit.org/show_bug.cgi?id=201241 5 <rdar://problem/54317588> 6 7 Reviewed by Tim Horton. 8 9 For reasons that are still unknown, it's possible for iOS 13 simulators to get into a state where the IPC 10 communication delay between the web and UI processes can become extraordinarily long. Under these circumstances, 11 the drag and drop harness fails to simulate a drop, since it ends up firing all scheduled calls to 12 -dropInteraction:sessionDidUpdate: before the first response from the web process arrives in the UI process, so 13 it believes that the web view has rejected the drop from being handled. 14 15 Instead, make the drag and drop simulator robust by ensuring a presentation update between drop session updates, 16 to make sure that the web process has had time to send a response after each update. 17 18 * TestWebKitAPI/ios/DragAndDropSimulatorIOS.mm: 19 (-[DragAndDropSimulator _advanceProgress]): 20 1 21 2019-08-28 Megan Gardner <megan_gardner@apple.com> 2 22 -
trunk/Tools/TestWebKitAPI/ios/DragAndDropSimulatorIOS.mm
r247022 r249226 625 625 case DragAndDropPhaseEntered: { 626 626 _lastKnownDropProposal = [[_webView dropInteractionDelegate] dropInteraction:[_webView dropInteraction] sessionDidUpdate:_dropSession.get()]; 627 [_webView waitForNextPresentationUpdate]; 627 628 if (![self shouldAllowMoveOperation] && [_lastKnownDropProposal operation] == UIDropOperationMove) 628 629 _lastKnownDropProposal = adoptNS([[UIDropProposal alloc] initWithDropOperation:UIDropOperationCancel]);
Note:
See TracChangeset
for help on using the changeset viewer.