Bug 68552

Summary: [WK2] [Mac] Support drag in mouse events for WebKit2 EventSender
Product: WebKit Reporter: Chang Shu <cshu>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ap, darin, enrica, jberlin, simon.fraser, tonikitoo
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 68108, 120538    
Bug Blocks: 42194    
Attachments:
Description Flags
proposed fix none

Description Chang Shu 2011-09-21 11:55:22 PDT
The implementation for bug 68108 does not include the drag support.
Comment 1 Darin Adler 2011-10-12 09:21:35 PDT
Why is this making bots red? Can we just add some tests back to the Skipped list?
Comment 2 Alexey Proskuryakov 2013-08-30 10:44:05 PDT
We currently have many drag and drop tests enabled and even "passing", but mostly by accident.

I have a patch that implements WebKit1-like event saving and replaying. This doesn't quite work, because WebDragClient messages from WebProcess are asynchronous, and are delivered out of order in WKTR, which is mostly synchronous when it comes to event handling.

The ideal way to fix this would involve refactoring WebKit2 to use NSDragSession API, which is not modal, and thus doesn't need mouse event saving for tests. There are exciting opportunities for cleanup in WebKit here, as the new API doesn't use NSPasteboard for drag initiation, so we could somewhat decouple drag&drop from clipboard (the only caveat being that DOM APIs expose them as one class, so WebCore layer has to respect that).
Comment 3 Alexey Proskuryakov 2013-08-30 10:59:32 PDT
Created attachment 210135 [details]
proposed fix
Comment 4 Alexey Proskuryakov 2013-08-30 10:59:55 PDT
Comment on attachment 210135 [details]
proposed fix

Sorry, wrong bug.