dataTransfer.getData() broken in WebKit/Safari
| Originator: | rekceh | ||
| Number: | rdar://11748018 | Date Originated: | 26-Jun-2012 01:28 PM |
| Status: | Open | Resolved: | |
| Product: | Mac OS X | Product Version: | 10.8 |
| Classification: | Other Bug | Reproducible: | Yes |
Summary: WebKit's implementation of the JavaScript function "dataTransfer.getData" does not return the paths to the dragged files, as on OS X 10.6 and 10.7. This causes problems for web-authoring apps, which allow users to edit web pages by dragging image files onto a WebView. This does happen with all kinds of apps, no matter if they have been "sandboxed" or not. Steps to Reproduce: Open the attached HTML file in Safari and drag an image file on the green rectangle. In previous version of Mac OS X the file path will appear in this area, once the drag operation finishes. On 10.8 (12A256) there will be no data of any type in the JavaScript dataTransfer object. Expected Results: The file path should appear after a drop. Actual Results: No data appears after a drop. Regression: n/a Notes: n/a 26-Jun-2012 01:28 PM Paul Hecker: 'DragDropTest.html' was successfully uploaded
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!