Bug 178253 - "text/html" data is not exposed when dragging and dropping across origins
Summary: "text/html" data is not exposed when dragging and dropping across origins
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Wenson Hsieh
Keywords: InRadar
Depends on:
Reported: 2017-10-12 22:13 PDT by Wenson Hsieh
Modified: 2017-10-13 00:14 PDT (History)
9 users (show)

See Also:

Patch (44.96 KB, patch)
2017-10-12 23:02 PDT, Wenson Hsieh
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Wenson Hsieh 2017-10-12 22:13:22 PDT
Test case:

1. Download http://whsieh.github.io/examples/custom-pasteboard-data.html to a local file and open it
2. Open http://whsieh.github.io/examples/custom-pasteboard-data.html in a separate window
3. Drag the "Custom Drag" element from one window to the other.

Observed: "text/html" does not appear in the output area.
Expected: "text/html" should be exposed.
Comment 1 Wenson Hsieh 2017-10-12 22:14:22 PDT
In DataTransfer::setDataFromItemList(), we need to handle the case where the type is "text/html".
Comment 2 Radar WebKit Bug Importer 2017-10-12 22:19:59 PDT
Comment 3 Wenson Hsieh 2017-10-12 23:02:22 PDT
Created attachment 323640 [details]
Comment 4 Wenson Hsieh 2017-10-12 23:03:13 PDT
(Diff looks way bigger than the change really is due to renaming)
Comment 5 Wenson Hsieh 2017-10-12 23:46:55 PDT
Comment on attachment 323640 [details]

Thanks for the review!
Comment 6 WebKit Commit Bot 2017-10-13 00:14:33 PDT
Comment on attachment 323640 [details]

Clearing flags on attachment: 323640

Committed r223278: <https://trac.webkit.org/changeset/223278>
Comment 7 WebKit Commit Bot 2017-10-13 00:14:35 PDT
All reviewed patches have been landed.  Closing bug.