My Fellow Community - I am in some need of assistance here. I am certain this is something simple, but am just missing the mark. So please help. Scenario: On Mac OS X 10.7 or greater, I have a webview as a browser. In that webview I navigate to Gmail. In Gmail I compose a message and then drag and drop one or more files into the compose box.
Actual Results: The pasteboard has NSURL object(s) and the webview simply takes the absolute string value and pastes it into the composed message body. For other edit areas like the search bar and such this behavior is accepted. Desired Results: It is desired that the drag triggers the HTML5 when mousing over and the drop will trigger the proper javascript to upload the files. This behavior is consistent with how FireFox, Safari, and OmniWeb perform. How do I get this same consistent behavior / What do I need to implement? What I have tried so far: * Using the WebView Editing Delegate I tried replacing the markup in the DOMRange * I subclassed WebView to override performDragging: and modify the DraggingSource pasteboard * Turned on LocalStorage using the WebView preferences private methods Note: The app will be sandboxed and currently is not code signed. So what am I missing or better yet where do I start and end? P.S. I have tried so many things, I didn't want to clutter this question up with the useless code snippets I have tried thus far. However, if solved I will post my results for all others. Q Posted here too: http://stackoverflow.com/questions/15296633/cocoa-webview-and-html5-drag-and -drop -- Arvin Bhatnagar http://careers.stackoverflow.com/ArvinB
_______________________________________________ webkit-dev mailing list webkit-dev@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-dev